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

Side by Side Diff: runtime/observatory/tests/service/get_object_store_rpc_test.dart

Issue 2940523003: Cleaned analysis result for observatory (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « runtime/observatory/tests/service/get_native_allocation_samples_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--error_on_bad_type --error_on_bad_override 4 // VMOptions=--error_on_bad_type --error_on_bad_override
5 5
6 import 'package:observatory/models.dart' as M; 6 import 'package:observatory/models.dart' as M;
7 import 'package:observatory/service_io.dart'; 7 import 'package:observatory/service_io.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'service_test_common.dart'; 9 import 'service_test_common.dart';
10 import 'test_helper.dart'; 10 import 'test_helper.dart';
(...skipping 18 matching lines...) Expand all
29 expect(isolate.pauseEvent is M.PauseBreakpointEvent, isTrue); 29 expect(isolate.pauseEvent is M.PauseBreakpointEvent, isTrue);
30 }, 30 },
31 31
32 // Get object_store. 32 // Get object_store.
33 (Isolate isolate) async { 33 (Isolate isolate) async {
34 var object_store = await isolate.getObjectStore(); 34 var object_store = await isolate.getObjectStore();
35 expect(object_store.runtimeType, equals(ObjectStore)); 35 expect(object_store.runtimeType, equals(ObjectStore));
36 // Sanity check. 36 // Sanity check.
37 expect(object_store.fields.length, greaterThanOrEqualTo(1)); 37 expect(object_store.fields.length, greaterThanOrEqualTo(1));
38 // Checking Closures. 38 // Checking Closures.
39 expect(object_store.fields.singleWhere(isClosureFunctionsList), isNotNull); 39 var single = object_store.fields.singleWhere(isClosureFunctionsList);
40 expect(object_store.fields.singleWhere(isClosureFunctionsList).value.isList, 40 expect(single, isNotNull);
41 isTrue); 41 var value = single.value as Instance;
42 expect(value.isList, isTrue);
42 } 43 }
43 ]; 44 ];
44 45
45 main(args) => 46 main(args) =>
46 runIsolateTestsSynchronous(args, tests, testeeConcurrent: doDebugger); 47 runIsolateTestsSynchronous(args, tests, testeeConcurrent: doDebugger);
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/get_native_allocation_samples_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698