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 e291a93e22857aaff9c2abfb7327d99541aa3641..e6d9ac5d2c68e97009edd0e6830f5c09e00f1726 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.name, |
+ 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); |