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

Unified Diff: tests/language/local_function3_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_literal4_test.dart ('k') | tests/language/local_function_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/local_function3_test.dart
diff --git a/tests/language/local_function3_test.dart b/tests/language/local_function3_test.dart
index 668c9cdfc37e160374b1d2acee0c4ccda36c9f45..dc3e75077dc2062a98e9b6336415cde53a463b34 100644
--- a/tests/language/local_function3_test.dart
+++ b/tests/language/local_function3_test.dart
@@ -10,7 +10,7 @@ class LocalFunction3Test {
bool exception_caught = false;
try {
f.xyz(0);
- } catch (NoSuchMethodException e) {
+ } on NoSuchMethodException catch (e) {
exception_caught = true;
}
Expect.equals(true, exception_caught);
@@ -18,7 +18,7 @@ class LocalFunction3Test {
String f_string;
try {
f_string = f.toString();
- } catch (NoSuchMethodException e) {
+ } on NoSuchMethodException catch (e) {
exception_caught = true;
}
Expect.equals(false, exception_caught);
« no previous file with comments | « tests/language/list_literal4_test.dart ('k') | tests/language/local_function_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698