| Index: tests/standalone/vmservice/isolate_echo_test.dart
|
| diff --git a/tests/standalone/vmservice/isolate_echo_test.dart b/tests/standalone/vmservice/isolate_echo_test.dart
|
| deleted file mode 100644
|
| index cf0f325f3a299dbd2c5c3042d19f119e363ab7e1..0000000000000000000000000000000000000000
|
| --- a/tests/standalone/vmservice/isolate_echo_test.dart
|
| +++ /dev/null
|
| @@ -1,59 +0,0 @@
|
| -// 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 isolate_echo_test;
|
| -
|
| -import 'test_helper.dart';
|
| -import 'package:expect/expect.dart';
|
| -
|
| -class EchoRequestTest extends VmServiceRequestHelper {
|
| - EchoRequestTest(port, id) :
|
| - super('http://127.0.0.1:$port/$id/_echo/foo/bar?a=b&k=&d=e&z=w');
|
| -
|
| - onRequestCompleted(Map reply) {
|
| - Expect.equals('message', reply['type']);
|
| -
|
| - Expect.equals(3, reply['request']['arguments'].length);
|
| - Expect.equals('_echo', reply['request']['arguments'][0]);
|
| - Expect.equals('foo', reply['request']['arguments'][1]);
|
| - Expect.equals('bar', reply['request']['arguments'][2]);
|
| -
|
| - Expect.equals(4, reply['request']['option_keys'].length);
|
| - Expect.equals('a', reply['request']['option_keys'][0]);
|
| - Expect.equals('k', reply['request']['option_keys'][1]);
|
| - Expect.equals('d', reply['request']['option_keys'][2]);
|
| - Expect.equals('z', reply['request']['option_keys'][3]);
|
| -
|
| - Expect.equals(4, reply['request']['option_values'].length);
|
| - Expect.equals('b', reply['request']['option_values'][0]);
|
| - Expect.equals('', reply['request']['option_values'][1]);
|
| - Expect.equals('e', reply['request']['option_values'][2]);
|
| - Expect.equals('w', reply['request']['option_values'][3]);
|
| - }
|
| -}
|
| -
|
| -class VMTest extends VmServiceRequestHelper {
|
| - VMTest(port) : super('http://127.0.0.1:$port/vm');
|
| -
|
| - String _isolateId;
|
| - onRequestCompleted(Map reply) {
|
| - VMTester tester = new VMTester(reply);
|
| - tester.checkIsolateCount(1);
|
| - _isolateId = tester.getIsolateId(0);
|
| - }
|
| -}
|
| -
|
| -
|
| -main() {
|
| - var process = new TestLauncher('isolate_echo_script.dart');
|
| - process.launch().then((port) {
|
| - var test = new VMTest(port);
|
| - test.makeRequest().then((_) {
|
| - var echoRequestTest = new EchoRequestTest(port, test._isolateId);
|
| - echoRequestTest.makeRequest().then((_) {
|
| - process.requestExit();
|
| - });
|
| - });
|
| - });
|
| -}
|
|
|