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

Unified Diff: tests/language/external_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/expect_test.dart ('k') | tests/language/f_bounded_quantification_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/external_test.dart
diff --git a/tests/language/external_test.dart b/tests/language/external_test.dart
index 709b7344982ab79f7c267d57db1c70183d1bcc0a..8e1b8798536277cb93ad5ccc558ce47d25a6cba0 100644
--- a/tests/language/external_test.dart
+++ b/tests/language/external_test.dart
@@ -32,7 +32,7 @@ main() {
var foo = new Foo(); /// 10: continued
try { /// 10: continued
foo.f05(); /// 10: continued
- } catch (String exc) { /// 10: continued
+ } on String catch (exc) { /// 10: continued
if (exc == "External implementation missing.") { /// 10: continued
throw exc; /// 10: continued
} /// 10: continued
@@ -40,7 +40,7 @@ main() {
try { /// 13: continued
Foo.f13(); /// 13: continued
- } catch (String exc) { /// 13: continued
+ } on String catch (exc) { /// 13: continued
if (exc == "External implementation missing.") { /// 13: continued
throw exc; /// 13: continued
} /// 13: continued
@@ -49,7 +49,7 @@ main() {
// Try calling an unpatched external constructor.
try { /// 20: continued
var foo = new Foo.n09(); /// 20: continued
- } catch (String exc) { /// 20: continued
+ } on String catch (exc) { /// 20: continued
if (exc == "External implementation missing.") { /// 20: continued
throw exc; /// 20: continued
} /// 20: continued
« no previous file with comments | « tests/language/expect_test.dart ('k') | tests/language/f_bounded_quantification_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698