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

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

Issue 3003123002: Migrated test block 219 to Dart 2.0. (Closed)
Patch Set: Deleted files that were already merged. Created 3 years, 4 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/lib_2/mirrors/delegate_function_invocation_test.dart
diff --git a/tests/lib_strong/mirrors/delegate_function_invocation_test.dart b/tests/lib_2/mirrors/delegate_function_invocation_test.dart
similarity index 85%
rename from tests/lib_strong/mirrors/delegate_function_invocation_test.dart
rename to tests/lib_2/mirrors/delegate_function_invocation_test.dart
index d7398ad968ff16ae5753df2875750cad6103c31a..5fe88f4bfb1576826ba8db944a9f70e58bf6ae37 100644
--- a/tests/lib_strong/mirrors/delegate_function_invocation_test.dart
+++ b/tests/lib_2/mirrors/delegate_function_invocation_test.dart
@@ -15,7 +15,7 @@ class Proxy {
}
testClosure() {
- var proxy = new Proxy(() => 42);
+ dynamic proxy = new Proxy(() => 42);
Expect.equals(42, proxy());
Expect.equals(42, proxy.call());
}
@@ -25,7 +25,7 @@ class FakeFunction {
}
testFakeFunction() {
- var proxy = new Proxy(new FakeFunction());
+ dynamic proxy = new Proxy(new FakeFunction());
Expect.equals(43, proxy());
Expect.equals(43, proxy.call());
}
@@ -33,7 +33,7 @@ testFakeFunction() {
topLevelFunction() => 44;
testTopLevelTearOff() {
- var proxy = new Proxy(topLevelFunction);
+ dynamic proxy = new Proxy(topLevelFunction);
Expect.equals(44, proxy());
Expect.equals(44, proxy.call());
}
@@ -43,7 +43,7 @@ class C {
}
testInstanceTearOff() {
- var proxy = new Proxy(new C().method);
+ dynamic proxy = new Proxy(new C().method);
Expect.equals(45, proxy());
Expect.equals(45, proxy.call());
}

Powered by Google App Engine
This is Rietveld 408576698