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

Unified Diff: tests/language/overridden_no_such_method.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
« no previous file with comments | « tests/language/no_such_method_test.dart ('k') | tests/language/super_call4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/overridden_no_such_method.dart
diff --git a/tests/language/overridden_no_such_method.dart b/tests/language/overridden_no_such_method.dart
index d2d26fbddd971e15f20454f544729e2b4497c560..b06fc5ccc40fdb33468a9e1c4b4c39b1f153ac32 100644
--- a/tests/language/overridden_no_such_method.dart
+++ b/tests/language/overridden_no_such_method.dart
@@ -7,9 +7,10 @@ class OverriddenNoSuchMethod {
OverriddenNoSuchMethod() {}
- noSuchMethod(var function_name, List args) {
- Expect.equals("foo", function_name);
+ noSuchMethod(InvocationMirror mirror) {
+ Expect.equals("foo", mirror.memberName);
// 'foo' was called with two parameters (not counting receiver).
+ List args = mirror.positionalArguments;
Expect.equals(2, args.length);
Expect.equals(101, args[0]);
Expect.equals(202, args[1]);
« no previous file with comments | « tests/language/no_such_method_test.dart ('k') | tests/language/super_call4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698