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

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

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: One more test expectation 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 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);
« 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