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

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

Issue 339563002: Remove scanBuiltinLibraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 6 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/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/dart_backend_test.dart b/tests/compiler/dart2js/dart_backend_test.dart
index 9e3ae4ac86068060b9a99e32dde5951a8576e452..de83f867ccd4bb09dd79cbba681934fa0ce3be23 100644
--- a/tests/compiler/dart2js/dart_backend_test.dart
+++ b/tests/compiler/dart2js/dart_backend_test.dart
@@ -44,6 +44,13 @@ identical(a, b) => true;
const proxy = 0;
''';
+const corePatch = r'''
+import 'dart:_js_helper';
+import 'dart:_interceptors';
+import 'dart:_isolate_helper';
+import 'dart:_foreign_helper';
+''';
+
const ioLib = r'''
library io;
class Platform {
@@ -67,6 +74,8 @@ const helperLib = r'''
library js_helper;
class JSInvocationMirror {}
assertHelper(a) {}
+class Closure {}
+class BoundClosure {}
''';
const foreignLib = r'''
@@ -107,7 +116,9 @@ testDart2DartWithLibrary(
}
if (uri.path.endsWith('/core.dart')) {
return new Future.value(coreLib);
- } else if (uri.path.endsWith('/io.dart')) {
+ } else if (uri.path.endsWith('/core_patch.dart')) {
+ return new Future.value(corePatch);
+ } else if (uri.path.endsWith('/io.dart')) {
return new Future.value(ioLib);
} else if (uri.path.endsWith('/js_helper.dart')) {
return new Future.value(helperLib);

Powered by Google App Engine
This is Rietveld 408576698