Index: tests/compiler/dart2js_extra/no_such_method_test.dart |
diff --git a/tests/compiler/dart2js_extra/no_such_method_test.dart b/tests/compiler/dart2js_extra/no_such_method_test.dart |
index 4a432c58dd963758ef5a83312b12f2715624010c..f1047dfab3b42b2c9b3b4c03e59b40c68f81da74 100644 |
--- a/tests/compiler/dart2js_extra/no_such_method_test.dart |
+++ b/tests/compiler/dart2js_extra/no_such_method_test.dart |
@@ -11,8 +11,9 @@ class NoSuchMethodInfo { |
} |
class A { |
- noSuchMethod(String name, List args) { |
- topLevelInfo = new NoSuchMethodInfo(this, name, args); |
+ noSuchMethod(InvocationMirror invocation) { |
+ topLevelInfo = new NoSuchMethodInfo(this, invocation.memberName, |
+ invocation.positionalArguments); |
return topLevelInfo; |
} |
@@ -38,13 +39,13 @@ main() { |
Expect.isTrue(info.receiver === a); |
info = a.bar; |
- Expect.equals('get:bar', info.name); |
+ Expect.equals('bar', info.name); |
Expect.isTrue(info.args.length == 0); |
Expect.isTrue(info.receiver === a); |
a.bar = 2; |
info = topLevelInfo; |
- Expect.equals('set:bar', info.name); |
+ Expect.equals('bar', info.name); |
Expect.isTrue(info.args.length == 1); |
Expect.isTrue(info.args[0] === 2); |
Expect.isTrue(info.receiver === a); |