| OLD | NEW |
| (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 |
| 5 library unknown_command_test; |
| 6 |
| 7 import 'test_helper.dart'; |
| 8 import 'package:expect/expect.dart'; |
| 9 |
| 10 class UnknownCommandTest extends VmServiceRequestHelper { |
| 11 UnknownCommandTest(port) : super('http://127.0.0.1:$port/badcommand'); |
| 12 |
| 13 onRequestCompleted(Map reply) { |
| 14 Expect.equals('error', reply['type']); |
| 15 } |
| 16 } |
| 17 |
| 18 main() { |
| 19 var process = new TestLauncher('unknown_command_script.dart'); |
| 20 process.launch().then((port) { |
| 21 var test = new UnknownCommandTest(port); |
| 22 test.makeRequest().then((_) { |
| 23 process.requestExit(); |
| 24 }); |
| 25 }); |
| 26 } |
| OLD | NEW |