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

Unified Diff: tests/language/list_literal3_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/list_literal2_negative_test.dart ('k') | tests/language/list_literal4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/list_literal3_test.dart
diff --git a/tests/language/list_literal3_test.dart b/tests/language/list_literal3_test.dart
index 4a11b1da90f740d2d55c890d60c879b0fb63f44a..e82d3ac0a5330957f80867da31486b4ced1f8ec4 100644
--- a/tests/language/list_literal3_test.dart
+++ b/tests/language/list_literal3_test.dart
@@ -19,7 +19,7 @@ class ListLiteral3Test {
bool caughtException = false;
try {
joke[0] = "sock";
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
@@ -41,7 +41,7 @@ class ListLiteral3Test {
try {
caughtException = false;
a[0][0] = 42;
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
@@ -53,7 +53,7 @@ class ListLiteral3Test {
try {
caughtException = false;
b[0][0] = 42.0;
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
« no previous file with comments | « tests/language/list_literal2_negative_test.dart ('k') | tests/language/list_literal4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698