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

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

Issue 1153193006: Standardize on using "kind" to distinguish sub-varieties of a type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: doc changes Created 5 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
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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=--compile-all --error_on_bad_type --error_on_bad_override 4 // VMOptions=--compile-all --error_on_bad_type --error_on_bad_override
5 5
6 import 'package:observatory/service_io.dart'; 6 import 'package:observatory/service_io.dart';
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:isolate' as isolate; 10 import 'dart:isolate' as isolate;
(...skipping 21 matching lines...) Expand all
32 32
33 var tests = [ 33 var tests = [
34 34
35 // Initial data fetch and verify we've hit the breakpoint. 35 // Initial data fetch and verify we've hit the breakpoint.
36 (Isolate isolate) async { 36 (Isolate isolate) async {
37 await isolate.rootLibrary.load(); 37 await isolate.rootLibrary.load();
38 var script = isolate.rootLibrary.scripts[0]; 38 var script = isolate.rootLibrary.scripts[0];
39 await script.load(); 39 await script.load();
40 await hasStoppedAtBreakpoint(isolate); 40 await hasStoppedAtBreakpoint(isolate);
41 // Sanity check. 41 // Sanity check.
42 expect(isolate.pauseEvent.eventType, equals(ServiceEvent.kPauseBreakpoint)); 42 expect(isolate.pauseEvent.kind, equals(ServiceEvent.kPauseBreakpoint));
43 }, 43 },
44 44
45 // Get stack 45 // Get stack
46 (Isolate isolate) async { 46 (Isolate isolate) async {
47 var stack = await isolate.getStack(); 47 var stack = await isolate.getStack();
48 expect(stack.type, equals('Stack')); 48 expect(stack.type, equals('Stack'));
49 49
50 // Sanity check. 50 // Sanity check.
51 expect(stack['frames'].length, greaterThanOrEqualTo(1)); 51 expect(stack['frames'].length, greaterThanOrEqualTo(1));
52 Script script = stack['frames'][0]['script']; 52 Script script = stack['frames'][0]['script'];
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 expect(msgHandlerObjectId, isNotNull); 87 expect(msgHandlerObjectId, isNotNull);
88 88
89 // Get object. 89 // Get object.
90 var object = await isolate.getObject(msgHandlerObjectId); 90 var object = await isolate.getObject(msgHandlerObjectId);
91 expect(object.valueAsString, equals('34')); 91 expect(object.valueAsString, equals('34'));
92 } 92 }
93 93
94 ]; 94 ];
95 95
96 main(args) => runIsolateTests(args, tests, testeeBefore: startTimer); 96 main(args) => runIsolateTests(args, tests, testeeBefore: startTimer);
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/gc_test.dart ('k') | runtime/observatory/tests/service/isolate_lifecycle_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698