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

Unified Diff: tests/language/try_catch2_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/throw_test.dart ('k') | tests/language/try_catch_on_syntax_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/try_catch2_test.dart
diff --git a/tests/language/try_catch2_test.dart b/tests/language/try_catch2_test.dart
index d7d52fc9a0697136b3507cc48865796f5b2ed85d..e509ac47dd4ac6463c97ad255d3ef8bdb37ac70d 100644
--- a/tests/language/try_catch2_test.dart
+++ b/tests/language/try_catch2_test.dart
@@ -27,13 +27,13 @@ class Helper {
try {
j = f2() + f3() + j;
i = i + 1;
- } catch (TestException e, StackTrace trace) {
+ } on TestException catch (e, trace) {
j = 50;
}
j = f3() + j;
- } catch (MyException exception) {
+ } on MyException catch (exception) {
i = 100;
- } catch (TestException e, StackTrace trace) {
+ } on TestException catch (e, trace) {
i = 200;
}
return i;
« no previous file with comments | « tests/language/throw_test.dart ('k') | tests/language/try_catch_on_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698