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

Unified Diff: dart/tests/language/invocation_mirror_test.dart

Issue 14049009: Rename Invocation to InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged 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
Index: dart/tests/language/invocation_mirror_test.dart
diff --git a/dart/tests/language/invocation_mirror_test.dart b/dart/tests/language/invocation_mirror_test.dart
index 5c5a91bdb4094e073aa9eb01d8dc67c9c9705cff..d1bb2aa45bf9730d3dab6a62d0fbbefc951517f8 100644
--- a/dart/tests/language/invocation_mirror_test.dart
+++ b/dart/tests/language/invocation_mirror_test.dart
@@ -4,14 +4,14 @@
import "package:expect/expect.dart";
-// InvocationMirror and noSuchMethod testing.
+// Invocation and noSuchMethod testing.
/** Class with noSuchMethod that returns the mirror */
class N {
// Storage for the last argument to noSuchMethod.
// Needed for setters, which don't evaluate to the return value.
var last;
- noSuchMethod(InvocationMirror m) => last = m;
+ noSuchMethod(Invocation m) => last = m;
flif(int x) { Expect.fail("never get here"); }
flaf([int x]) { Expect.fail("never get here"); }
@@ -28,14 +28,14 @@ class C extends N {
}
/**
- * Checks the data of an InvocationMirror.
+ * Checks the data of an Invocation.
*
* Call without optionals for getters, with only positional for setters,
* and with both optionals for everything else.
*/
-testInvocationMirror(InvocationMirror im, String name,
+testInvocationMirror(Invocation im, String name,
[List positional, Map named]) {
- Expect.isTrue(im is InvocationMirror, "is InvocationMirror");
+ Expect.isTrue(im is Invocation, "is Invocation");
Expect.equals(name, im.memberName, "name");
if (named == null) {
Expect.isTrue(im.isAccessor, "$name:isAccessor");
@@ -152,7 +152,7 @@ testInvocationMirrors() {
}
class M extends N {
- noSuchMethod(InvocationMirror m) { throw "never get here"; }
+ noSuchMethod(Invocation m) { throw "never get here"; }
testSuperCalls() {
// Missing property/method access.
« no previous file with comments | « dart/tests/language/invocation_mirror_invoke_on_test.dart ('k') | dart/tests/language/no_such_method2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698