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

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

Issue 145323002: Post-meetup feature extravaganza. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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_list_test; 5 library isolate_list_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 10
11 class IsolateListTest extends VmServiceRequestHelper { 11 class IsolateListTest extends VmServiceRequestHelper {
12 IsolateListTest(port) : super('http://127.0.0.1:$port/isolates'); 12 IsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
13 13
14 onRequestCompleted(Map reply) { 14 onRequestCompleted(Map reply) {
15 IsolateListTester tester = new IsolateListTester(reply); 15 IsolateListTester tester = new IsolateListTester(reply);
16 tester.checkIsolateCount(1); 16 tester.checkIsolateCount(1);
17 tester.checkIsolateNameContains('isolate_list_script.dart');
18 } 17 }
19 } 18 }
20 19
21 20
22 main() { 21 main() {
23 var process = new TestLauncher('isolate_list_script.dart'); 22 var process = new TestLauncher('isolate_list_script.dart');
24 process.launch().then((port) { 23 process.launch().then((port) {
25 var test = new IsolateListTest(port); 24 var test = new IsolateListTest(port);
26 test.makeRequest().then((_) { 25 test.makeRequest().then((_) {
27 process.requestExit(); 26 process.requestExit();
28 }); 27 });
29 }); 28 });
30 } 29 }
OLDNEW
« no previous file with comments | « tests/standalone/vmservice/isolate_library_test.dart ('k') | tests/standalone/vmservice/isolate_stacktrace_command_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698