| Index: runtime/tests/vm/dart/isolate_mirror_local_test.dart
|
| ===================================================================
|
| --- runtime/tests/vm/dart/isolate_mirror_local_test.dart (revision 21177)
|
| +++ runtime/tests/vm/dart/isolate_mirror_local_test.dart (working copy)
|
| @@ -117,7 +117,7 @@
|
|
|
| // Test library invocation by calling function(123).
|
| Expect.equals(0, global_var);
|
| - lib_mirror.invoke('function', [ 123 ]).then(
|
| + lib_mirror.invokeAsync('function', [123]).then(
|
| (InstanceMirror retval) {
|
| Expect.equals(123, global_var);
|
| Expect.equals('int', retval.type.simpleName);
|
| @@ -343,7 +343,7 @@
|
| Expect.equals("InstanceMirror on <1001>", mirror.toString());
|
|
|
| // Invoke (mirror + mirror).
|
| - mirror.invoke('+', [ mirror ]).then(
|
| + mirror.invokeAsync('+', [ mirror ]).then(
|
| (InstanceMirror retval) {
|
| Expect.equals('int', retval.type.simpleName);
|
| Expect.isTrue(retval.hasReflectee);
|
| @@ -360,7 +360,7 @@
|
| mirror.toString());
|
|
|
| // Invoke mirror[0].
|
| - mirror.invoke('[]', [ 0 ]).then(
|
| + mirror.invokeAsync('[]', [ 0 ]).then(
|
| (InstanceMirror retval) {
|
| Expect.equals('String', retval.type.simpleName);
|
| Expect.isTrue(retval.hasReflectee);
|
| @@ -432,7 +432,7 @@
|
| cls.toString());
|
|
|
| // Invoke mirror.method(1000).
|
| - mirror.invoke('method', [ 1000 ]).then(
|
| + mirror.invokeAsync('method', [ 1000 ]).then(
|
| (InstanceMirror retval) {
|
| Expect.equals('int', retval.type.simpleName);
|
| Expect.isTrue(retval.hasReflectee);
|
| @@ -460,7 +460,7 @@
|
| void testMirrorErrors(MirrorSystem mirrors) {
|
| LibraryMirror lib_mirror = mirrors.isolate.rootLibrary;
|
|
|
| - lib_mirror.invoke('methodWithException', [])
|
| + lib_mirror.invokeAsync('methodWithException', [])
|
| .then((InstanceMirror retval) {
|
| // Should not reach here.
|
| Expect.isTrue(false);
|
| @@ -476,7 +476,7 @@
|
| testDone('testMirrorErrors1');
|
| });
|
|
|
| - lib_mirror.invoke('methodWithError', [])
|
| + lib_mirror.invokeAsync('methodWithError', [])
|
| .then((InstanceMirror retval) {
|
| // Should not reach here.
|
| Expect.isTrue(false);
|
| @@ -490,7 +490,7 @@
|
| // TODO(turnidge): When we call a method that doesn't exist, we
|
| // should probably call noSuchMethod(). I'm adding this test to
|
| // document the current behavior in the meantime.
|
| - lib_mirror.invoke('methodNotFound', [])
|
| + lib_mirror.invokeAsync('methodNotFound', [])
|
| .then((InstanceMirror retval) {
|
| // Should not reach here.
|
| Expect.isTrue(false);
|
|
|