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

Unified Diff: tests/corelib/indexed_list_access_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/corelib/index_out_of_range_exception_test.dart ('k') | tests/corelib/list_iterators_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/indexed_list_access_test.dart
diff --git a/tests/corelib/indexed_list_access_test.dart b/tests/corelib/indexed_list_access_test.dart
index f2ed091fef17f5bcd9f67c6782eb41f20020f162..0cd7d48a7dba7d545bce7d84204d0ca7343708f9 100644
--- a/tests/corelib/indexed_list_access_test.dart
+++ b/tests/corelib/indexed_list_access_test.dart
@@ -32,9 +32,9 @@ checkList(var list) {
checkCatch(var f, var list, var index) {
try {
f(list, index);
- } catch (IllegalArgumentException e) {
+ } on IllegalArgumentException catch (e) {
return true;
- } catch (TypeError t) {
+ } on TypeError catch (t) {
return true; // thrown in type checked mode.
}
return false;
« no previous file with comments | « tests/corelib/index_out_of_range_exception_test.dart ('k') | tests/corelib/list_iterators_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698