| 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('/', '.')};";
|
| }
|
|
|