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

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

Issue 19622003: VM Service isolate listing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--short_socket_read
5 // VMOptions=--short_socket_write
6 // VMOptions=--short_socket_read --short_socket_write
7 //
8 // Test:
9 // *) Connect to VM Service and obtain list of running isolates.
10 // *) Spawn a second isolate and run test again.
11
12 library multiple_isolate_list_test;
13
14 import 'test_helper.dart';
15 import 'package:expect/expect.dart';
16
17 class MultipleIsolateListTest extends VmServiceRequestHelper {
18 MultipleIsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
19
20 onRequestCompleted(Map reply) {
21 IsolateListTester tester = new IsolateListTester(reply);
22 tester.checkIsolateCount(2);
23 tester.checkIsolateIdExists(7116);
24 tester.checkIsolateNamePrefix(7116, 'multiple_isolate_list_script.dart');
25 tester.checkIsolateNameContains('myIsolateName');
26 }
27 }
28
29 main() {
30 var process = new TestLauncher('multiple_isolate_list_script.dart');
31 process.launch().then((port) {
32 var test = new MultipleIsolateListTest(port);
33 test.makeRequest().then((_) {
34 process.requestExit();
35 });
36 });
37 }
OLDNEW
« no previous file with comments | « tests/standalone/vmservice/multiple_isolate_list_script.dart ('k') | tests/standalone/vmservice/test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698