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

Unified Diff: tests/language/arithmetic_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/arithmetic2_test.dart ('k') | tests/language/assertion_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/arithmetic_test.dart
diff --git a/tests/language/arithmetic_test.dart b/tests/language/arithmetic_test.dart
index fef30b8b6e75a441c16c1b0fcc203958d3148c10..f2224f6280993d455a6df3f5556dc4a600c9d643 100644
--- a/tests/language/arithmetic_test.dart
+++ b/tests/language/arithmetic_test.dart
@@ -12,7 +12,7 @@ class ArithmeticTest {
try {
parseInt(s);
return false;
- } catch (FormatException e) {
+ } on FormatException catch (e) {
return true;
}
}
@@ -21,7 +21,7 @@ class ArithmeticTest {
try {
parseDouble(s);
return false;
- } catch (FormatException e) {
+ } on FormatException catch (e) {
return true;
}
}
@@ -32,7 +32,7 @@ class ArithmeticTest {
try {
var a = d.toInt();
return false;
- } catch (FormatException e) {
+ } on FormatException catch (e) {
return true;
}
}
« no previous file with comments | « tests/language/arithmetic2_test.dart ('k') | tests/language/assertion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698