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

Unified Diff: dart/tests/language/super_call4_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
« no previous file with comments | « dart/tests/language/overridden_no_such_method_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/super_call4_test.dart
diff --git a/dart/tests/language/super_call4_test.dart b/dart/tests/language/super_call4_test.dart
index b60b3a45aae50bbf82c795402d1861085dfd66df..b61ea8e5d3602211517ccac7df771fd8b9401d4d 100644
--- a/dart/tests/language/super_call4_test.dart
+++ b/dart/tests/language/super_call4_test.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import "dart:mirrors" show reflect;
import "package:expect/expect.dart";
// Checks that noSuchMethod is resolved in the super class and not in the
@@ -14,22 +15,22 @@ class C {
if (im.memberName == const Symbol('foo')) {
return im.positionalArguments.isEmpty &&
im.namedArguments.isEmpty &&
- im.invokeOn(e);
+ reflect(e).delegate(im);
}
if (im.memberName == const Symbol('bar')) {
return im.positionalArguments.length == 1 &&
im.namedArguments.isEmpty &&
- im.invokeOn(e);
+ reflect(e).delegate(im);
}
if (im.memberName == const Symbol('baz')) {
return im.positionalArguments.isEmpty &&
im.namedArguments.length == 1 &&
- im.invokeOn(e);
+ reflect(e).delegate(im);
}
if (im.memberName == const Symbol('boz')) {
return im.positionalArguments.length == 1 &&
im.namedArguments.length == 1 &&
- im.invokeOn(e);
+ reflect(e).delegate(im);
}
return false;
}
« no previous file with comments | « dart/tests/language/overridden_no_such_method_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698