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

Unified Diff: tests/language/savannah_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/rethrow_test.dart ('k') | tests/language/scoped_variables_try_catch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/savannah_test.dart
diff --git a/tests/language/savannah_test.dart b/tests/language/savannah_test.dart
index 9c0069799e0b1475dda13f07184d633f9c64a362..b55926e5860881a1df5be9fb5a4fe4dcd07488d7 100644
--- a/tests/language/savannah_test.dart
+++ b/tests/language/savannah_test.dart
@@ -56,7 +56,7 @@ class SavannahTest {
try {
savannah[zebra1] = zebra1.name;
savannah[zebra2] = zebra2.name;
- } catch (NoSuchMethodException e) {
+ } on NoSuchMethodException catch (e) {
print("Caught: $e");
caught = true;
}
@@ -70,7 +70,7 @@ class SavannahTest {
try {
print("zebra1: ${savannah[zebra1]}");
print("zebra2: ${savannah[zebra2]}");
- } catch (NoSuchMethodException e) {
+ } on NoSuchMethodException catch (e) {
print("Caught: $e");
caught = true;
}
« no previous file with comments | « tests/language/rethrow_test.dart ('k') | tests/language/scoped_variables_try_catch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698