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

Unified Diff: tests/corelib/const_list_literal_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/big_integer_vm_test.dart ('k') | tests/corelib/core_runtime_types_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/const_list_literal_test.dart
diff --git a/tests/corelib/const_list_literal_test.dart b/tests/corelib/const_list_literal_test.dart
index 01658a9f75f900729c059a332ca8e5e7ddb3a375..33bc487c37db48016988d19dfb259bb9aef7fa5f 100644
--- a/tests/corelib/const_list_literal_test.dart
+++ b/tests/corelib/const_list_literal_test.dart
@@ -13,7 +13,7 @@ class ConstListLiteralTest {
var exception = null;
try {
list.add(4);
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -23,7 +23,7 @@ class ConstListLiteralTest {
exception = null;
try {
list.addAll([4, 5]);
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -32,7 +32,7 @@ class ConstListLiteralTest {
exception = null;
try {
list[0] = 0;
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -41,7 +41,7 @@ class ConstListLiteralTest {
exception = null;
try {
list.sort((a, b) => a < b);
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -53,7 +53,7 @@ class ConstListLiteralTest {
exception = null;
try {
list.setRange(0, 1, [1], 0);
- } catch (UnsupportedOperationException e) {
+ } on UnsupportedOperationException catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
« no previous file with comments | « tests/corelib/big_integer_vm_test.dart ('k') | tests/corelib/core_runtime_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698