Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1118963003: Fix for computing IS_CLIENT. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/src/context/context_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index 77eaae445310730161e3f5b18b70e50f4bd24745..24bc92629e1fa8788293774411a377c765f79d88 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -1113,7 +1113,20 @@ library lib_b;
expect(outputs[IS_CLIENT], isFalse);
}
- test_perform_isClient_true_direct() {
+ test_perform_isClient_true_export_indirect() {
+ _newSource('/exports_html.dart', '''
+library lib_exports_html;
+export 'dart:html';
+''');
+ Source source = _newSource('/test.dart', '''
+import 'exports_html.dart';
+''');
+ _computeResult(source, IS_CLIENT);
+ expect(task, new isInstanceOf<BuildSourceClosuresTask>());
+ expect(outputs[IS_CLIENT], isTrue);
+ }
+
+ test_perform_isClient_true_import_direct() {
Source sourceA = _newSource('/a.dart', '''
library lib_a;
import 'dart:html';
@@ -1123,7 +1136,7 @@ import 'dart:html';
expect(outputs[IS_CLIENT], isTrue);
}
- test_perform_isClient_true_indirect() {
+ test_perform_isClient_true_import_indirect() {
Source sourceA = _newSource('/a.dart', '''
library lib_a;
import 'b.dart';
« no previous file with comments | « pkg/analyzer/test/src/context/context_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698