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

Unified Diff: tests/utils/recursive_import_test.dart

Issue 12382012: Continue the crazy hacking on the recursive_import_test and give (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/recursive_import_test.dart
diff --git a/tests/utils/recursive_import_test.dart b/tests/utils/recursive_import_test.dart
index 6654e1710c89f5604199863745049709912b5b1f..62bf3620ff51b4761cf9b9a96f1e1a7906e794d6 100644
--- a/tests/utils/recursive_import_test.dart
+++ b/tests/utils/recursive_import_test.dart
@@ -31,6 +31,21 @@ eqNullB(a) {}
class JSInvocationMirror {} // Should be in helper.
""";
+const INTERCEPTORS_LIB = """
+library interceptors;
+class JSArray {
+ get length => null;
+ removeLast() => null;
+ add(x) { }
+}
+class JSString {
+ get length => null;
+ split(x) => null;
+ concat(x) => null;
+ toString() => null;
+}
+""";
+
const String RECURSIVE_MAIN = """
library fisk;
import 'recurse/fisk.dart';
@@ -56,6 +71,8 @@ main() {
source = '';
} else if (uri.path.endsWith('isolate_helper.dart')) {
source = 'class _WorkerStub {}';
+ } else if (uri.path.endsWith('interceptors.dart')) {
+ source = INTERCEPTORS_LIB;
} else {
source = "library lib${uri.path.replaceAll('/', '.')};";
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698