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

Unified Diff: dart/tests/language/no_such_method_test.dart

Issue 14251021: Move invokeOn to InstanceMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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: dart/tests/language/no_such_method_test.dart
diff --git a/dart/tests/language/no_such_method_test.dart b/dart/tests/language/no_such_method_test.dart
index d112019e4addd15164355b7ee15c2c4d7259e03a..77e4894f161ed0aa5ae1bb857d57d8b48f78efda 100644
--- a/dart/tests/language/no_such_method_test.dart
+++ b/dart/tests/language/no_such_method_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
// Dart test program testing that NoSuchMethod is properly called.
+import "dart:mirrors" show reflect;
import "package:expect/expect.dart";
class GetName {
@@ -10,7 +11,7 @@ class GetName {
moo({b}) => "moo";
}
-String getName(im) => im.invokeOn(new GetName());
+String getName(im) => reflect(new GetName()).delegate(im);
class NoSuchMethodTest {
« no previous file with comments | « dart/tests/language/many_overridden_no_such_method_test.dart ('k') | dart/tests/language/overridden_no_such_method.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698