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

Unified Diff: runtime/observatory/tests/service/mirror_references_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/mirror_references_test.dart
diff --git a/runtime/observatory/tests/service/mirror_references_test.dart b/runtime/observatory/tests/service/mirror_references_test.dart
index b93bfa6db9101e33f263e48182537cf64e8c71ce..cdcd70c1723251aea638205753b22448b77b8893 100644
--- a/runtime/observatory/tests/service/mirror_references_test.dart
+++ b/runtime/observatory/tests/service/mirror_references_test.dart
@@ -10,7 +10,7 @@ import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
import 'test_helper.dart';
-class Foo { }
+class Foo {}
Foo foo;
var /*MirrorReference*/ ref;
@@ -20,11 +20,12 @@ void script() {
ClassMirror fooClassMirror = reflectClass(Foo);
InstanceMirror fooClassMirrorMirror = reflect(fooClassMirror);
LibraryMirror libmirrors = fooClassMirrorMirror.type.owner;
- ref = reflect(fooClassMirror).getField(MirrorSystem.getSymbol('_reflectee', libmirrors)).reflectee;
+ ref = reflect(fooClassMirror)
+ .getField(MirrorSystem.getSymbol('_reflectee', libmirrors))
+ .reflectee;
}
var tests = [
-
(Isolate isolate) async {
var lib = await isolate.rootLibrary.load();
Field fooField = lib.variables.singleWhere((v) => v.name == 'foo');
@@ -42,7 +43,6 @@ var tests = [
expect(loadedRef.referent.name, equals('Foo'));
expect(loadedRef.referent, equals(foo.clazz));
},
-
];
main(args) => runIsolateTests(args, tests, testeeBefore: script);
« no previous file with comments | « runtime/observatory/tests/service/metrics_test.dart ('k') | runtime/observatory/tests/service/native_metrics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698