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

Unified Diff: tests/language/generic_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/function_type_test.dart ('k') | tests/language/getter_closure_execution_order_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generic_test.dart
diff --git a/tests/language/generic_test.dart b/tests/language/generic_test.dart
index 59954b7b5f6a032d45562fbc03baf0cab5d28615..ead39cef2df0bd32bd192f51856c878999162580 100644
--- a/tests/language/generic_test.dart
+++ b/tests/language/generic_test.dart
@@ -54,7 +54,7 @@ class GenericTest {
Expect.equals(true, c.b_.isT(const AX()));
try {
E e = new E(); // Throws a type error, if type checks are enabled.
- } catch (TypeError error) {
+ } on TypeError catch (error) {
result = 1;
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
« no previous file with comments | « tests/language/function_type_test.dart ('k') | tests/language/getter_closure_execution_order_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698