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

Unified Diff: tests/language_2/call_test.dart

Issue 2998493002: Migrate language block 45 - call_argument ... call_with. (Closed)
Patch Set: Merge branch 'master' into migrate-45 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
« no previous file with comments | « tests/language_2/call_property_test.dart ('k') | tests/language_2/call_this_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/call_test.dart
diff --git a/tests/language/call_test.dart b/tests/language_2/call_test.dart
similarity index 83%
rename from tests/language/call_test.dart
rename to tests/language_2/call_test.dart
index 629f7d537ca82ae751b8974d0e9ea74e5b0e165e..882eeb4d249f0eae170d6fb1984bdbe11025b6f5 100644
--- a/tests/language/call_test.dart
+++ b/tests/language_2/call_test.dart
@@ -37,7 +37,7 @@ main() {
Expect.equals("4455", named_arg.call(x: 44, y: 55));
}
- Expect.throws(() => bar.call(), (e) => e is NoSuchMethodError);
- Expect.throws(() => opt_arg.call(x: "p"), (e) => e is NoSuchMethodError);
- Expect.throws(() => named_arg.call("p", "q"), (e) => e is NoSuchMethodError);
+ Expect.throwsNoSuchMethodError(() => (bar as dynamic).call());
+ Expect.throwsNoSuchMethodError(() => (opt_arg as dynamic).call(x: "p"));
+ Expect.throwsNoSuchMethodError(() => (named_arg as dynamic).call("p", "q"));
}
« no previous file with comments | « tests/language_2/call_property_test.dart ('k') | tests/language_2/call_this_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698