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

Unified Diff: tests/language/list_literal3_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/language/list_literal3_test.dart
diff --git a/tests/language/list_literal3_test.dart b/tests/language/list_literal3_test.dart
index e82d3ac0a5330957f80867da31486b4ced1f8ec4..fafbf58797aad1e3c1a9ccc800b4991f510bbbd2 100644
--- a/tests/language/list_literal3_test.dart
+++ b/tests/language/list_literal3_test.dart
@@ -19,7 +19,7 @@ class ListLiteral3Test {
bool caughtException = false;
try {
joke[0] = "sock";
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
@@ -41,7 +41,7 @@ class ListLiteral3Test {
try {
caughtException = false;
a[0][0] = 42;
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);
@@ -53,7 +53,7 @@ class ListLiteral3Test {
try {
caughtException = false;
b[0][0] = 42.0;
- } on UnsupportedOperationException catch (e) {
+ } on StateError catch (e) {
caughtException = true;
}
Expect.equals(true, caughtException);

Powered by Google App Engine
This is Rietveld 408576698