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

Unified Diff: tests/compiler/dart2js/dart_backend_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: Merged to tip-of-tree. Created 8 years, 2 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 | « lib/compiler/implementation/scanner/scanner_task.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/dart_backend_test.dart b/tests/compiler/dart2js/dart_backend_test.dart
index 184482fc90a516b0802ff8caf18700312d2e7d62..3e7582dfaa1b555a3720f7f786e2b261baffddc0 100644
--- a/tests/compiler/dart2js/dart_backend_test.dart
+++ b/tests/compiler/dart2js/dart_backend_test.dart
@@ -50,6 +50,10 @@ abstract class Navigator {
}
''';
+const helperLib = r'''
+#library('js_helper');
+''';
+
testDart2Dart(String src, [void continuation(String s), bool minify = false,
bool stripTypes = false]) {
// If continuation is not provided, check that source string remains the same.
@@ -78,6 +82,7 @@ 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);
// TODO(smok): The file should change to html_dartium at some point.
if (uri.path.endsWith('/html_dart2js.dart')) return new Future.immediate(htmlLib);
return new Future.immediate('');
« no previous file with comments | « lib/compiler/implementation/scanner/scanner_task.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698