Index: tests/corelib/list_removeat_test.dart |
diff --git a/tests/corelib/list_removeat_test.dart b/tests/corelib/list_removeat_test.dart |
index 7010678a735d4d012fe461373c72bf373c5ed2f8..c1511c08810c17ead348b5c2d21e1ab60e212f58 100644 |
--- a/tests/corelib/list_removeat_test.dart |
+++ b/tests/corelib/list_removeat_test.dart |
@@ -45,13 +45,13 @@ void main() { |
var l2 = new List(5); |
for (var i = 0; i < 5; i++) l2[i] = i; |
Expect.throws(() { l2.removeAt(2); }, |
- (e) => e is UnsupportedOperationException, |
+ (e) => e is StateError, |
"fixed-length"); |
// Unmodifiable list. |
var l3 = const [0, 1, 2, 3, 4]; |
Expect.throws(() { l3.removeAt(2); }, |
- (e) => e is UnsupportedOperationException, |
+ (e) => e is StateError, |
"unmodifiable"); |
// Empty list is not special. |