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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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/weak_properties_test.dart
diff --git a/runtime/observatory/tests/service/weak_properties_test.dart b/runtime/observatory/tests/service/weak_properties_test.dart
index a7705e8693757d84572647dfeb762a43c53aa6d6..02f4d31721945afaffa9a01ab6f3bcddc2cb4f87 100644
--- a/runtime/observatory/tests/service/weak_properties_test.dart
+++ b/runtime/observatory/tests/service/weak_properties_test.dart
@@ -10,9 +10,8 @@ import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
import 'test_helper.dart';
-class Foo {}
-
-class Bar {}
+class Foo { }
+class Bar { }
var expando;
var key;
@@ -28,14 +27,13 @@ void script() {
InstanceMirror expandoMirror = reflect(expando);
LibraryMirror libcore = expandoMirror.type.owner;
- var entries = expandoMirror
- .getField(MirrorSystem.getSymbol('_data', libcore))
- .reflectee;
+ var entries = expandoMirror.getField(MirrorSystem.getSymbol('_data', libcore)).reflectee;
weak_property = entries.singleWhere((e) => e != null);
print(weak_property);
}
var tests = [
+
(Isolate isolate) async {
var lib = await isolate.rootLibrary.load();
Field keyField = lib.variables.singleWhere((v) => v.name == 'key');
@@ -44,8 +42,7 @@ var tests = [
Field valueField = lib.variables.singleWhere((v) => v.name == 'value');
await valueField.load();
Instance value = valueField.staticValue;
- Field propField =
- lib.variables.singleWhere((v) => v.name == 'weak_property');
+ Field propField = lib.variables.singleWhere((v) => v.name == 'weak_property');
await propField.load();
Instance prop = propField.staticValue;
@@ -63,6 +60,7 @@ var tests = [
expect(loadedProp.value, isNotNull);
expect(loadedProp.value.clazz, equals(value.clazz));
},
+
];
main(args) => runIsolateTests(args, tests, testeeBefore: script);
« no previous file with comments | « runtime/observatory/tests/service/vm_timeline_flags_test.dart ('k') | runtime/observatory/tests/ui/inspector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698