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

Unified Diff: tests/standalone/status_expression_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/standalone/out_of_memory_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/status_expression_test.dart
diff --git a/tests/standalone/status_expression_test.dart b/tests/standalone/status_expression_test.dart
index 03b4098f0255f6ba05eae99203a378c281088623..c95b5559c0c082b98deac006bc27f350898f50b9 100644
--- a/tests/standalone/status_expression_test.dart
+++ b/tests/standalone/status_expression_test.dart
@@ -61,7 +61,7 @@ class StatusExpressionTest {
Tokenizer tokenizer = new Tokenizer(input);
try {
tokenizer.tokenize();
- } catch (Exception e) {
+ } on Exception catch (e) {
thrown = e;
}
Expect.equals("Syntax error in '$input'", thrown.toString());
@@ -74,7 +74,7 @@ class StatusExpressionTest {
Tokenizer tokenizer = new Tokenizer(input);
try {
tokenizer.tokenize();
- } catch (Exception e) {
+ } on Exception catch (e) {
thrown = e;
}
Expect.equals("Syntax error in '$input'", thrown.toString());
« no previous file with comments | « tests/standalone/out_of_memory_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698