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

Unified Diff: tests/language/invocation_mirror_test.dart

Issue 11293008: Fix typos in invocation mirror test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/invocation_mirror_test.dart
diff --git a/tests/language/invocation_mirror_test.dart b/tests/language/invocation_mirror_test.dart
index 6bbb0940be22732e9f2ccce4e58dabb23a6030f4..f168d93e68733269822a66f4409a760eef493610 100644
--- a/tests/language/invocation_mirror_test.dart
+++ b/tests/language/invocation_mirror_test.dart
@@ -32,7 +32,7 @@ class C extends N {
testInvocationMirror(InvocationMirror im, String name,
[List positional, Map named]) {
Expect.isTrue(im is InvocationMirror);
- Expect.equals(name, im.methodName);
+ Expect.equals(name, im.memberName);
if (named == null) {
Expect.isTrue(im.isAccessor);
Expect.isFalse(im.isMethod);
@@ -95,7 +95,7 @@ testInvocationMirrors() {
testInvocationMirror(n(), 'call', [], {});
testInvocationMirror(n(42), 'call', [42], {});
testInvocationMirror(n(x: 42), 'call', [], {"x": 42});
- testInvocationMirror(n(37, x: 42), 'call', [37], {"x": 42});is
+ testInvocationMirror(n(37, x: 42), 'call', [37], {"x": 42});
// Calling with arguments not matching existing call method.
testInvocationMirror(c(), 'call', [], {});
@@ -137,15 +137,15 @@ testInvocationMirrors() {
// original receivers noSuchMethod, only the one inherited from Object
// by the closure object.
Expect.throws(() { var x = n.flif; x(37, 42); },
- (e) => e is noSuchMethodError);
+ (e) => e is NoSuchMethodError);
Expect.throws(() { var x = c.call; x(37, 42); },
- (e) => e is noSuchMethodError);
+ (e) => e is NoSuchMethodError);
}
// Test the NoSuchMethodError thrown by different incorrect calls.
testNoSuchMethodErrors() {
test(Function block) {
- Expect.throws(block, (e) => e is noSuchMethodError);
+ Expect.throws(block, (e) => e is NoSuchMethodError);
}
var o = new Object();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698