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

Unified Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10967068: Stop importing js_helper.dart explicitly in the core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undid changes not necessary for main compiler change. Created 8 years, 3 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
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index ffe478ce6d5fff0e639af4ae847218bc943d6008..89feb197e36736a29c4e909789a603044e897e33 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -48,6 +48,11 @@ class Platform {
}
''';
+const helperLib = r'''
+#library('_js_helper');
+void assert(x);
+''';
+
testDart2Dart(String src, [void continuation(String s), bool minify = false,
bool cutDeclarationTypes = false]) {
// If continuation is not provided, check that source string remains the same.
@@ -76,6 +81,9 @@ testDart2DartWithLibrary(
}
if (uri.path.endsWith('/core.dart')) return new Future.immediate(coreLib);
if (uri.path.endsWith('/io.dart')) return new Future.immediate(ioLib);
+ if (uri.path.endsWith('/js_helper.dart')) {
+ return new Future.immediate(helperLib);
+ }
return new Future.immediate('');
}

Powered by Google App Engine
This is Rietveld 408576698