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

Unified Diff: runtime/observatory/tests/service/library_dependency_test.dart

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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: 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);

Powered by Google App Engine
This is Rietveld 408576698