| Index: runtime/observatory/test/echo_test.dart
|
| diff --git a/runtime/observatory/test/echo_test.dart b/runtime/observatory/test/echo_test.dart
|
| index 7c7c512a73f9c2bf8349dd7b8595339304850c20..6a10e2444c63ef1d73a68f7fdb2947ec07fe87e7 100644
|
| --- a/runtime/observatory/test/echo_test.dart
|
| +++ b/runtime/observatory/test/echo_test.dart
|
| @@ -10,18 +10,16 @@ import 'test_helper.dart';
|
| var tests = [
|
|
|
| (Isolate isolate) =>
|
| - isolate.vm.getDeprecated('_echo').then((result) {
|
| - expect(result['type'], equals("message"));
|
| - expect(result['id'], equals("_echo"));
|
| - expect(result.owner, equals(isolate.vm));
|
| -}),
|
| + isolate.vm.invokeRpc('_echo', { 'text': 'hello'}).then((result) {
|
| + expect(result['type'], equals('_EchoResponse'));
|
| + expect(result['text'], equals('hello'));
|
| + }),
|
|
|
| (Isolate isolate) =>
|
| - isolate.getDeprecated('_echo').then((result) {
|
| - expect(result['type'], equals("message"));
|
| - expect(result['id'], equals("_echo"));
|
| - expect(result.owner, equals(isolate));
|
| -}),
|
| + isolate.invokeRpc('_echo', { 'text': 'hello'}).then((result) {
|
| + expect(result['type'], equals('_EchoResponse'));
|
| + expect(result['text'], equals('hello'));
|
| + }),
|
|
|
| (Isolate isolate) {
|
| Completer completer = new Completer();
|
| @@ -34,7 +32,7 @@ var tests = [
|
| completer.complete();
|
| }
|
| });
|
| - isolate.getDeprecated('_echo/event');
|
| + isolate.invokeRpc('_triggerEchoEvent', { 'text': 'hello' });
|
| return completer.future;
|
| },
|
|
|
|
|