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

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

Issue 11574032: Make unit testing of the compiler work with the new isolate helper library. (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
Index: tests/compiler/dart2js/dart_backend_test.dart
===================================================================
--- tests/compiler/dart2js/dart_backend_test.dart (revision 16156)
+++ 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.
@@ -94,6 +99,7 @@
// 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('/isolate_helper.dart')) return new Future.immediate(isolateHelperLib);
ahe 2012/12/14 10:13:52 Long line.
return new Future.immediate('');
}

Powered by Google App Engine
This is Rietveld 408576698