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

Unified Diff: tests/lib/mirrors/delegate_function_invocation_test.dart

Issue 181063025: Match existing expectation that delegate returns unwrapped values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « runtime/lib/mirrors_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/delegate_function_invocation_test.dart
diff --git a/tests/lib/mirrors/delegate_function_invocation_test.dart b/tests/lib/mirrors/delegate_function_invocation_test.dart
index fd60f723b7c15b3e3f9a3f589d9e36d75c72949f..d7398ad968ff16ae5753df2875750cad6103c31a 100644
--- a/tests/lib/mirrors/delegate_function_invocation_test.dart
+++ b/tests/lib/mirrors/delegate_function_invocation_test.dart
@@ -16,8 +16,8 @@ class Proxy {
testClosure() {
var proxy = new Proxy(() => 42);
- Expect.equals(reflect(42), proxy());
- Expect.equals(reflect(42), proxy.call());
+ Expect.equals(42, proxy());
+ Expect.equals(42, proxy.call());
}
class FakeFunction {
@@ -26,16 +26,16 @@ class FakeFunction {
testFakeFunction() {
var proxy = new Proxy(new FakeFunction());
- Expect.equals(reflect(43), proxy());
- Expect.equals(reflect(43), proxy.call());
+ Expect.equals(43, proxy());
+ Expect.equals(43, proxy.call());
}
topLevelFunction() => 44;
testTopLevelTearOff() {
var proxy = new Proxy(topLevelFunction);
- Expect.equals(reflect(44), proxy());
- Expect.equals(reflect(44), proxy.call());
+ Expect.equals(44, proxy());
+ Expect.equals(44, proxy.call());
}
class C {
@@ -44,8 +44,8 @@ class C {
testInstanceTearOff() {
var proxy = new Proxy(new C().method);
- Expect.equals(reflect(45), proxy());
- Expect.equals(reflect(45), proxy.call());
+ Expect.equals(45, proxy());
+ Expect.equals(45, proxy.call());
}
main() {
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698