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

Unified Diff: runtime/observatory/tests/service/get_object_store_rpc_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/get_object_store_rpc_test.dart
diff --git a/runtime/observatory/tests/service/get_object_store_rpc_test.dart b/runtime/observatory/tests/service/get_object_store_rpc_test.dart
index a15abca78cf0cf906944fd8eba47d4fdce3c1089..701e60315af45488f31b27f534c3bf540837f1a9 100644
--- a/runtime/observatory/tests/service/get_object_store_rpc_test.dart
+++ b/runtime/observatory/tests/service/get_object_store_rpc_test.dart
@@ -19,28 +19,29 @@ bool isClosureFunctionsList(NamedField field) {
}
var tests = [
+
// Initial data fetch and verify we've hit the breakpoint.
- (Isolate isolate) async {
- await isolate.rootLibrary.load();
- var script = isolate.rootLibrary.scripts[0];
- await script.load();
- await hasStoppedAtBreakpoint(isolate);
- // Sanity check.
- expect(isolate.pauseEvent is M.PauseBreakpointEvent, isTrue);
- },
+(Isolate isolate) async {
+ await isolate.rootLibrary.load();
+ var script = isolate.rootLibrary.scripts[0];
+ await script.load();
+ await hasStoppedAtBreakpoint(isolate);
+ // Sanity check.
+ expect(isolate.pauseEvent is M.PauseBreakpointEvent, isTrue);
+},
// Get object_store.
- (Isolate isolate) async {
- var object_store = await isolate.getObjectStore();
- expect(object_store.runtimeType, equals(ObjectStore));
- // Sanity check.
- expect(object_store.fields.length, greaterThanOrEqualTo(1));
- // Checking Closures.
- expect(object_store.fields.singleWhere(isClosureFunctionsList), isNotNull);
- expect(object_store.fields.singleWhere(isClosureFunctionsList).value.isList,
- isTrue);
- }
+(Isolate isolate) async {
+ var object_store = await isolate.getObjectStore();
+ expect(object_store.runtimeType, equals(ObjectStore));
+ // Sanity check.
+ expect(object_store.fields.length, greaterThanOrEqualTo(1));
+ // Checking Closures.
+ expect(object_store.fields.singleWhere(isClosureFunctionsList), isNotNull);
+ expect(object_store.fields.singleWhere(isClosureFunctionsList).value.isList, isTrue);
+}
+
];
-main(args) =>
- runIsolateTestsSynchronous(args, tests, testeeConcurrent: doDebugger);
+main(args) => runIsolateTestsSynchronous(args, tests,
+ testeeConcurrent: doDebugger);
« no previous file with comments | « runtime/observatory/tests/service/get_object_rpc_test.dart ('k') | runtime/observatory/tests/service/get_ports_rpc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698