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

Unified Diff: tests/language/is_object_test.dart

Issue 10891020: Update almost all tests (except co19) to use the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. Created 8 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/instanceof3_test.dart ('k') | tests/language/issue1363_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/is_object_test.dart
diff --git a/tests/language/is_object_test.dart b/tests/language/is_object_test.dart
index b997b76b35e3b8e27be01bcc257bed4b1b501a67..1a47bb2fa34770ea567d8698ceeac8870a5cc9d8 100644
--- a/tests/language/is_object_test.dart
+++ b/tests/language/is_object_test.dart
@@ -7,7 +7,7 @@ testTryCatch(x) {
try {
throw x;
Expect.fail("Exception '$x' should've been thrown");
- } catch (Object obj) {
+ } on Object catch (obj) {
Expect.equals(obj, x);
}
}
« no previous file with comments | « tests/language/instanceof3_test.dart ('k') | tests/language/issue1363_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698