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

Unified Diff: tests/language/ct_const_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
Index: tests/language/ct_const_test.dart
diff --git a/tests/language/ct_const_test.dart b/tests/language/ct_const_test.dart
index ed121c813fcddbbac45cdbcbc557125dabce5353..6f7a5348136fac26a9bcd5b05d3b1df71c94f47e 100644
--- a/tests/language/ct_const_test.dart
+++ b/tests/language/ct_const_test.dart
@@ -90,7 +90,7 @@ class CTConstTest {
bool caughtException = false;
try {
c11dItaly["green"] = 0;
- } catch (IllegalAccessException e) {
+ } on IllegalAccessException catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
@@ -99,7 +99,7 @@ class CTConstTest {
caughtException = false;
try {
c11dItaly.clear();
- } catch (IllegalAccessException e) {
+ } on IllegalAccessException catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
@@ -108,7 +108,7 @@ class CTConstTest {
caughtException = false;
try {
c11dItaly.remove("orange");
- } catch (IllegalAccessException e) {
+ } on IllegalAccessException catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
« no previous file with comments | « tests/language/code_after_try_is_executed_test.dart ('k') | tests/language/default_interface1_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698