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

Unified Diff: tests/corelib/const_list_literal_test.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
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 33bc487c37db48016988d19dfb259bb9aef7fa5f..e652a6ae22f99990d2d1c83fa4d2a3789c2a77c9 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);
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -23,7 +23,7 @@ class ConstListLiteralTest {
exception = null;
try {
list.addAll([4, 5]);
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -32,7 +32,7 @@ class ConstListLiteralTest {
exception = null;
try {
list[0] = 0;
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -41,7 +41,7 @@ class ConstListLiteralTest {
exception = null;
try {
list.sort((a, b) => a < b);
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);
@@ -53,7 +53,7 @@ class ConstListLiteralTest {
exception = null;
try {
list.setRange(0, 1, [1], 0);
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
exception = e;
}
Expect.equals(true, exception != null);

Powered by Google App Engine
This is Rietveld 408576698