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

Unified Diff: tests/compiler/dart2js_extra/no_such_method_test.dart

Issue 11336011: Revert "Change signature of noSuchMethod to take an InvocationMirror." (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
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 f1047dfab3b42b2c9b3b4c03e59b40c68f81da74..4a432c58dd963758ef5a83312b12f2715624010c 100644
--- a/tests/compiler/dart2js_extra/no_such_method_test.dart
+++ b/tests/compiler/dart2js_extra/no_such_method_test.dart
@@ -11,9 +11,8 @@ class NoSuchMethodInfo {
}
class A {
- noSuchMethod(InvocationMirror invocation) {
- topLevelInfo = new NoSuchMethodInfo(this, invocation.memberName,
- invocation.positionalArguments);
+ noSuchMethod(String name, List args) {
+ topLevelInfo = new NoSuchMethodInfo(this, name, args);
return topLevelInfo;
}
@@ -39,13 +38,13 @@ main() {
Expect.isTrue(info.receiver === a);
info = a.bar;
- Expect.equals('bar', info.name);
+ Expect.equals('get:bar', info.name);
Expect.isTrue(info.args.length == 0);
Expect.isTrue(info.receiver === a);
a.bar = 2;
info = topLevelInfo;
- Expect.equals('bar', info.name);
+ Expect.equals('set:bar', info.name);
Expect.isTrue(info.args.length == 1);
Expect.isTrue(info.args[0] === 2);
Expect.isTrue(info.receiver === a);
« no previous file with comments | « tests/compiler/dart2js_extra/dart2js_extra.status ('k') | tests/compiler/dart2js_extra/optional_parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698