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

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

Issue 20014002: Provide reasons for expect failures in service test helper. (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
« no previous file with comments | « no previous file | tests/standalone/vmservice/test_helper.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // VMOptions=--short_socket_read 4 // VMOptions=--short_socket_read
5 // VMOptions=--short_socket_write 5 // VMOptions=--short_socket_write
6 // VMOptions=--short_socket_read --short_socket_write 6 // VMOptions=--short_socket_read --short_socket_write
7 // 7 //
8 // Test: 8 // Test:
9 // *) Connect to VM Service and obtain list of running isolates. 9 // *) Connect to VM Service and obtain list of running isolates.
10 // *) Spawn a second isolate and run test again.
11 10
12 library multiple_isolate_list_test; 11 library multiple_isolate_list_test;
13 12
14 import 'test_helper.dart'; 13 import 'test_helper.dart';
15 import 'package:expect/expect.dart'; 14 import 'package:expect/expect.dart';
16 15
17 class MultipleIsolateListTest extends VmServiceRequestHelper { 16 class MultipleIsolateListTest extends VmServiceRequestHelper {
18 MultipleIsolateListTest(port) : super('http://127.0.0.1:$port/isolates'); 17 MultipleIsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
19 18
20 onRequestCompleted(Map reply) { 19 onRequestCompleted(Map reply) {
21 IsolateListTester tester = new IsolateListTester(reply); 20 IsolateListTester tester = new IsolateListTester(reply);
22 tester.checkIsolateCount(2); 21 tester.checkIsolateCount(2);
23 tester.checkIsolateIdExists(7116); 22 tester.checkIsolateIdExists(7116);
24 tester.checkIsolateNamePrefix(7116, 'multiple_isolate_list_script.dart'); 23 tester.checkIsolateNamePrefix(7116, 'multiple_isolate_list_script.dart');
25 tester.checkIsolateNameContains('myIsolateName'); 24 tester.checkIsolateNameContains('myIsolateName');
26 } 25 }
27 } 26 }
28 27
29 main() { 28 main() {
30 var process = new TestLauncher('multiple_isolate_list_script.dart'); 29 var process = new TestLauncher('multiple_isolate_list_script.dart');
31 process.launch().then((port) { 30 process.launch().then((port) {
32 var test = new MultipleIsolateListTest(port); 31 var test = new MultipleIsolateListTest(port);
33 test.makeRequest().then((_) { 32 test.makeRequest().then((_) {
34 process.requestExit(); 33 process.requestExit();
35 }); 34 });
36 }); 35 });
37 } 36 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/vmservice/test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698