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

Unified Diff: tests/language/issue1363_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/is_object_test.dart ('k') | tests/language/list_literal1_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/issue1363_test.dart
diff --git a/tests/language/issue1363_test.dart b/tests/language/issue1363_test.dart
index 3964e6f2894cc8be56d9b2579f79651e8ffd2b39..31d9ee8d829091b6989c1ab474d8d097f67e1b11 100644
--- a/tests/language/issue1363_test.dart
+++ b/tests/language/issue1363_test.dart
@@ -24,7 +24,7 @@ class C {
bool hasThrown = false;
try {
contents = libCup.getContents(); /// static type warning
- } catch (TypeError e) {
+ } on TypeError catch (e) {
hasThrown = true;
}
}
« no previous file with comments | « tests/language/is_object_test.dart ('k') | tests/language/list_literal1_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698