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

Side by Side Diff: tests/standalone/vmservice/isolate_stacktrace_command_test.dart

Issue 98253009: Refactor VM service IDs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 4
5 library isolate_stacktrace_command_test; 5 library isolate_stacktrace_command_test;
6 6
7 import 'test_helper.dart'; 7 import 'test_helper.dart';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 class StacktraceTest extends VmServiceRequestHelper { 10 class StacktraceTest extends VmServiceRequestHelper {
11 StacktraceTest(port, id) : 11 StacktraceTest(port, id) :
12 super('http://127.0.0.1:$port/isolates/$id/stacktrace'); 12 super('http://127.0.0.1:$port/$id/stacktrace');
13 13
14 onRequestCompleted(Map reply) { 14 onRequestCompleted(Map reply) {
15 Expect.equals('StackTrace', reply['type'], 'Not a StackTrace message.'); 15 Expect.equals('StackTrace', reply['type'], 'Not a StackTrace message.');
16 Expect.isTrue(4 <= reply['members'].length, 'Stacktrace is wrong length.'); 16 Expect.isTrue(4 <= reply['members'].length, 'Stacktrace is wrong length.');
17 // The number of frames involved in isolate message dispatch is an 17 // The number of frames involved in isolate message dispatch is an
18 // implementation detail. Only check that we got all the frames for user 18 // implementation detail. Only check that we got all the frames for user
19 // code. 19 // code.
20 Expect.equals('a', reply['members'][0]['name']); 20 Expect.equals('a', reply['members'][0]['name']);
21 Expect.equals('b', reply['members'][1]['name']); 21 Expect.equals('b', reply['members'][1]['name']);
22 Expect.equals('c', reply['members'][2]['name']); 22 Expect.equals('c', reply['members'][2]['name']);
(...skipping 18 matching lines...) Expand all
41 process.launch().then((port) { 41 process.launch().then((port) {
42 var test = new IsolateListTest(port); 42 var test = new IsolateListTest(port);
43 test.makeRequest().then((_) { 43 test.makeRequest().then((_) {
44 var stacktraceTest = new StacktraceTest(port, test._isolateId); 44 var stacktraceTest = new StacktraceTest(port, test._isolateId);
45 stacktraceTest.makeRequest().then((_) { 45 stacktraceTest.makeRequest().then((_) {
46 process.requestExit(); 46 process.requestExit();
47 }); 47 });
48 }); 48 });
49 }); 49 });
50 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698