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

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

Issue 1238803002: Make observatory tests analyzer clean (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 b198f01874a5bbab26359f6ff0dd1c20abd8b259..829726199c8bb01b5c4b96bc1851da905f1c4c45 100644
--- a/runtime/observatory/tests/service/library_dependency_test.dart
+++ b/runtime/observatory/tests/service/library_dependency_test.dart
@@ -15,7 +15,8 @@ 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);
}
@@ -35,6 +36,10 @@ var tests = [
expect(importOf("dart:convert").isDeferred, isTrue);
expect(importOf("dart:convert").prefix, equals("convert"));
},
+
+(Isolate isolate) async {
+ return convert.loadLibrary();
+}
];
main(args) => runIsolateTests(args, tests);
« no previous file with comments | « runtime/observatory/tests/service/address_mapper_test.dart ('k') | runtime/observatory/tests/service/metrics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698