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); |