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

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

Issue 11640021: Re-apply "Clean up the patch file for the isolate library by introducing a new buitlin library: iso… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | « sdk/lib/isolate/timer.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/dart_backend_test.dart
===================================================================
--- tests/compiler/dart2js/dart_backend_test.dart (revision 16320)
+++ tests/compiler/dart2js/dart_backend_test.dart (working copy)
@@ -61,6 +61,11 @@
var JS;
''';
+const isolateHelperLib = r'''
+class _WorkerStub {
+}
+''';
+
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.
@@ -88,12 +93,20 @@
if (uri.toString() == libUri.toString()) {
return new Future.immediate(srcLibrary);
}
- 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);
- if (uri.path.endsWith('/foreign_helper.dart')) return new Future.immediate(foreignLib);
+ if (uri.path.endsWith('/core.dart')) {
+ return new Future.immediate(coreLib);
+ } else if (uri.path.endsWith('/io.dart')) {
+ return new Future.immediate(ioLib);
+ } else if (uri.path.endsWith('/js_helper.dart')) {
+ return new Future.immediate(helperLib);
+ } else if (uri.path.endsWith('/html_dart2js.dart')) {
+ // TODO(smok): The file should change to html_dartium at some point.
+ return new Future.immediate(htmlLib);
+ } else if (uri.path.endsWith('/foreign_helper.dart')) {
+ return new Future.immediate(foreignLib);
+ } else if (uri.path.endsWith('/isolate_helper.dart')) {
+ return new Future.immediate(isolateHelperLib);
+ }
return new Future.immediate('');
}
« no previous file with comments | « sdk/lib/isolate/timer.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698