blob: 2ab54f8074cd00b92a806b0b24179a8cfa0e25f6 [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library unknown_command_test;
import 'test_helper.dart';
import 'package:expect/expect.dart';
class UnknownCommandTest extends VmServiceRequestHelper {
UnknownCommandTest(port) : super('$port/badcommand');
onRequestCompleted(Map reply) {
Expect.equals('error', reply['type']);
main() {
var process = new TestLauncher('unknown_command_script.dart');
process.launch().then((port) {
var test = new UnknownCommandTest(port);
test.makeRequest().then((_) {