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

Unified Diff: tests/language/stack_overflow_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/scoped_variables_try_catch_test.dart ('k') | tests/language/stack_trace_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/stack_overflow_test.dart
diff --git a/tests/language/stack_overflow_test.dart b/tests/language/stack_overflow_test.dart
index c1fdd49ad7d58abe983660f70fb741c111b6d473..83909f99bfa344d44376bdcdf22464a38ea501c3 100644
--- a/tests/language/stack_overflow_test.dart
+++ b/tests/language/stack_overflow_test.dart
@@ -13,7 +13,7 @@ class StackOverflowTest {
bool exceptionCaught = false;
try {
curseTheRecurse(1, 2, 3);
- } catch (StackOverflowException e) {
+ } on StackOverflowException catch (e) {
exceptionCaught = true;
}
Expect.equals(true, exceptionCaught);
« no previous file with comments | « tests/language/scoped_variables_try_catch_test.dart ('k') | tests/language/stack_trace_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698