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

Unified Diff: tests/language/empty_block_case_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/double_to_string_as_fixed_test.dart ('k') | tests/language/exception_identity_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/empty_block_case_test.dart
diff --git a/tests/language/empty_block_case_test.dart b/tests/language/empty_block_case_test.dart
index 4b80d96430a85b2ef7b38886997b8413dcb06f48..6aeb6cf3b92470eef0587fe93c7b82695ccda775 100644
--- a/tests/language/empty_block_case_test.dart
+++ b/tests/language/empty_block_case_test.dart
@@ -13,7 +13,7 @@ class EmptyBlockCaseTest {
case 1: {}
case 2: Expect.equals(true, false);
}
- } catch (FallThroughError e) {
+ } on FallThroughError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
« no previous file with comments | « tests/language/double_to_string_as_fixed_test.dart ('k') | tests/language/exception_identity_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698