Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: runtime/tests/vm/dart/isolate_mirror_local_test.dart

Issue 13967003: EAKING CHANGE: Rename InstanceMIrror.invoke, .getField, .setField to invokeAsync, getFieldAsync, se… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698