| Index: tests/standalone/vmservice/unknown_command_test.dart
|
| diff --git a/tests/standalone/vmservice/isolate_list_test.dart b/tests/standalone/vmservice/unknown_command_test.dart
|
| similarity index 60%
|
| copy from tests/standalone/vmservice/isolate_list_test.dart
|
| copy to tests/standalone/vmservice/unknown_command_test.dart
|
| index 2e68ced3cfefeafb988e78ea6901f6bd776839e3..b0df76a9fb3531642795d53f0067783635a723a7 100644
|
| --- a/tests/standalone/vmservice/isolate_list_test.dart
|
| +++ b/tests/standalone/vmservice/unknown_command_test.dart
|
| @@ -8,27 +8,23 @@
|
| // Test:
|
| // *) Connect to VM Service and obtain list of running isolates.
|
|
|
| -library isolate_list_test;
|
| +library unknown_command_test;
|
|
|
| import 'test_helper.dart';
|
| import 'package:expect/expect.dart';
|
|
|
| -
|
| -class IsolateListTest extends VmServiceRequestHelper {
|
| - IsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
|
| +class UnknownCommandTest extends VmServiceRequestHelper {
|
| + UnknownCommandTest(port) : super('http://127.0.0.1:$port/badcommand');
|
|
|
| onRequestCompleted(Map reply) {
|
| - IsolateListTester tester = new IsolateListTester(reply);
|
| - tester.checkIsolateCount(1);
|
| - tester.checkIsolateNameContains('isolate_list_script.dart');
|
| + Expect.equals('error', reply['type']);
|
| }
|
| }
|
|
|
| -
|
| main() {
|
| - var process = new TestLauncher('isolate_list_script.dart');
|
| + var process = new TestLauncher('unknown_command_script.dart');
|
| process.launch().then((port) {
|
| - var test = new IsolateListTest(port);
|
| + var test = new UnknownCommandTest(port);
|
| test.makeRequest().then((_) {
|
| process.requestExit();
|
| });
|
|
|