Index: runtime/observatory/tests/service/library_dependency_test.dart |
diff --git a/runtime/observatory/tests/service/library_dependency_test.dart b/runtime/observatory/tests/service/library_dependency_test.dart |
index 6a91179525bb0f6e04d6507802b58b2f1d5f9943..4b3fea59b52825c2c86dc0e19e8cd7454190de58 100644 |
--- a/runtime/observatory/tests/service/library_dependency_test.dart |
+++ b/runtime/observatory/tests/service/library_dependency_test.dart |
@@ -12,34 +12,32 @@ import 'dart:mirrors' as mirrors; |
import 'dart:convert' deferred as convert; |
var tests = [ |
- |
-(Isolate isolate) async { |
- var lib = await isolate.rootLibrary.load(); |
- // Use mirrors to shutup the analyzer. |
- mirrors.currentMirrorSystem(); |
- importOf(String uri) { |
- return lib.dependencies.singleWhere((dep) => dep.target.uri == uri); |
+ (Isolate isolate) async { |
+ var lib = await isolate.rootLibrary.load(); |
+ // Use mirrors to shutup the analyzer. |
+ mirrors.currentMirrorSystem(); |
+ importOf(String uri) { |
+ return lib.dependencies.singleWhere((dep) => dep.target.uri == uri); |
+ } |
+ |
+ expect(importOf("dart:collection").isImport, isFalse); |
+ expect(importOf("dart:collection").isExport, isTrue); |
+ expect(importOf("dart:collection").isDeferred, isFalse); |
+ expect(importOf("dart:collection").prefix, equals(null)); |
+ |
+ expect(importOf("dart:mirrors").isImport, isTrue); |
+ expect(importOf("dart:mirrors").isExport, isFalse); |
+ expect(importOf("dart:mirrors").isDeferred, isFalse); |
+ expect(importOf("dart:mirrors").prefix, equals("mirrors")); |
+ |
+ expect(importOf("dart:convert").isImport, isTrue); |
+ expect(importOf("dart:convert").isExport, isFalse); |
+ expect(importOf("dart:convert").isDeferred, isTrue); |
+ expect(importOf("dart:convert").prefix, equals("convert")); |
+ }, |
+ (Isolate isolate) async { |
+ return convert.loadLibrary(); |
} |
- |
- expect(importOf("dart:collection").isImport, isFalse); |
- expect(importOf("dart:collection").isExport, isTrue); |
- expect(importOf("dart:collection").isDeferred, isFalse); |
- expect(importOf("dart:collection").prefix, equals(null)); |
- |
- expect(importOf("dart:mirrors").isImport, isTrue); |
- expect(importOf("dart:mirrors").isExport, isFalse); |
- expect(importOf("dart:mirrors").isDeferred, isFalse); |
- expect(importOf("dart:mirrors").prefix, equals("mirrors")); |
- |
- expect(importOf("dart:convert").isImport, isTrue); |
- expect(importOf("dart:convert").isExport, isFalse); |
- expect(importOf("dart:convert").isDeferred, isTrue); |
- expect(importOf("dart:convert").prefix, equals("convert")); |
-}, |
- |
-(Isolate isolate) async { |
- return convert.loadLibrary(); |
-} |
]; |
main(args) => runIsolateTests(args, tests); |