Index: tests/corelib/list_removeat_test.dart |
diff --git a/tests/corelib/list_removeat_test.dart b/tests/corelib/list_removeat_test.dart |
index 465f2f5e01fdc4ac95a6117b4847f3a40ea8a1bb..d6a9b28bcef238f8b932799636bf0c49ba76765a 100644 |
--- a/tests/corelib/list_removeat_test.dart |
+++ b/tests/corelib/list_removeat_test.dart |
@@ -11,10 +11,10 @@ void main() { |
// Index must be integer and in range. |
Expect.throws(() { l1.removeAt(-1); }, |
- (e) => e is IndexOutOfRangeException, |
+ (e) => e is RangeError, |
"negative"); |
Expect.throws(() { l1.removeAt(5); }, |
- (e) => e is IndexOutOfRangeException, |
+ (e) => e is RangeError, |
"too large"); |
Expect.throws(() { l1.removeAt(null); }, |
(e) => e is ArgumentError, |
@@ -57,6 +57,6 @@ void main() { |
// Empty list is not special. |
var l4 = []; |
Expect.throws(() { l4.removeAt(0); }, |
- (e) => e is IndexOutOfRangeException, |
+ (e) => e is RangeError, |
"empty"); |
} |