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

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

Issue 2073893002: Removed all analyzer issues from tests (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated comments as full sentences Created 4 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
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
turnidge 2016/06/17 16:19:15 2016
cbernaschina 2016/06/17 18:06:28 Done.
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.
4 // VMOptions=--error_on_bad_type --error_on_bad_override
5
6 import 'package:observatory/service_io.dart';
7 import 'package:unittest/unittest.dart';
8 import 'service_test_common.dart';
9 import 'test_helper.dart';
10 import 'dart:developer' as developer;
11
12 void doDebugger() {
13 developer.debugger(message: "fo", when: true);
turnidge 2016/06/17 16:19:15 Why "fo"? Did you mean "foo"?
cbernaschina 2016/06/17 18:06:27 Done.
14 }
15
16 bool isClosures(NamedField field) {
turnidge 2016/06/17 16:19:15 Change name from "isClosures" to "isClosure"
cbernaschina 2016/06/17 18:06:27 It doesn't actually checks if it is a closure, it
rmacnak 2016/06/20 23:11:39 Sounds good.
17 return field.name == 'closure_functions_';
18 }
19
20 var tests = [
21
22 // Initial data fetch and verify we've hit the breakpoint.
23 (Isolate isolate) async {
24 await isolate.rootLibrary.load();
25 var script = isolate.rootLibrary.scripts[0];
26 await script.load();
27 await hasStoppedAtBreakpoint(isolate);
28 // Sanity check.
29 expect(isolate.pauseEvent.kind, equals(ServiceEvent.kPauseBreakpoint));
30 },
31
32 // Get object_store.
33 (Isolate isolate) async {
34 var object_store = await isolate.getObjectStore();
35 expect(object_store.runtimeType, equals(ObjectStore));
36 // Sanity check.
37 expect(object_store.fields.length, greaterThanOrEqualTo(1));
38 // Checking Closures.
39 expect(object_store.fields.singleWhere(isClosures), isNotNull);
40 expect(object_store.fields.singleWhere(isClosures).value.isList, isTrue);
41 }
42
43 ];
44
45 main(args) => runIsolateTestsSynchronous(args, tests, testeeConcurrent: doDebugg er);
turnidge 2016/06/17 16:19:15 Maybe wrap this to 80-columns
cbernaschina 2016/06/17 18:06:28 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698