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

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

Issue 24075002: Expose field data, use class id, and merge all collections into "objects" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « tests/standalone/vmservice/test_helper.dart ('k') | no next file » | 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 4
5 library unknown_isolate_command_test; 5 library isolate_class_table_test;
6 6
7 import 'dart:async';
7 import 'test_helper.dart'; 8 import 'test_helper.dart';
8 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
9 10
10 class UnknownRequestTest extends VmServiceRequestHelper { 11 class ClassTableTest extends VmServiceRequestHelper {
11 UnknownRequestTest(port, id) : 12 ClassTableTest(port, id) :
12 super('http://127.0.0.1:$port/isolates/$id/badrequest'); 13 super('http://127.0.0.1:$port/isolates/$id/classes');
13 14
14 onRequestCompleted(Map reply) { 15 onRequestCompleted(Map reply) {
15 Expect.equals('error', reply['type']); 16 ClassTableHelper helper = new ClassTableHelper(reply);
16 } 17 }
17 } 18 }
18 19
19 class IsolateListTest extends VmServiceRequestHelper { 20 class IsolateListTest extends VmServiceRequestHelper {
20 IsolateListTest(port) : super('http://127.0.0.1:$port/isolates'); 21 IsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
21 22
22 int _isolateId; 23 int _isolateId;
23 onRequestCompleted(Map reply) { 24 onRequestCompleted(Map reply) {
24 IsolateListTester tester = new IsolateListTester(reply); 25 IsolateListTester tester = new IsolateListTester(reply);
25 tester.checkIsolateCount(1); 26 tester.checkIsolateCount(1);
26 tester.checkIsolateNameContains('unknown_isolate_command_script.dart'); 27 tester.checkIsolateNameContains('field_script.dart');
27 _isolateId = reply['members'][0]['id']; 28 _isolateId = tester.checkIsolateNameContains('field_script');
28 } 29 }
29 } 30 }
30 31
31
32 main() { 32 main() {
33 var process = new TestLauncher('unknown_isolate_command_script.dart'); 33 var process = new TestLauncher('field_script.dart');
34 process.launch().then((port) { 34 process.launch().then((port) {
35 var test = new IsolateListTest(port); 35 var test = new IsolateListTest(port);
36 test.makeRequest().then((_) { 36 test.makeRequest().then((_) {
37 var unknownRequestTest = new UnknownRequestTest(port, test._isolateId); 37 var classTableTest = new ClassTableTest(port, test._isolateId);
38 unknownRequestTest.makeRequest().then((_) { 38 classTableTest.makeRequest().then((_) {
39 process.requestExit(); 39 process.requestExit();
40 }); 40 });
41 }); 41 });
42 }); 42 });
43 } 43 }
OLDNEW
« no previous file with comments | « tests/standalone/vmservice/test_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698