| Index: tests/corelib/list_remove_range_test.dart
|
| diff --git a/tests/corelib/list_remove_range_test.dart b/tests/corelib/list_remove_range_test.dart
|
| index 9358894442b281c46eb9587e853478deef8336d4..b806c9212cba0a0dc58ae8a04aea1bb913c83c4a 100644
|
| --- a/tests/corelib/list_remove_range_test.dart
|
| +++ b/tests/corelib/list_remove_range_test.dart
|
| @@ -48,13 +48,13 @@ void testNegativeIndices() {
|
| expectIOORE(() { list.removeRange(-1, 1); });
|
| Expect.listEquals([1, 2], list);
|
|
|
| - // A negative length throws an IllegalArgumentException.
|
| + // A negative length throws an ArgumentError.
|
| Expect.throws(() { list.removeRange(0, -1); },
|
| - (e) => e is IllegalArgumentException);
|
| + (e) => e is ArgumentError);
|
| Expect.listEquals([1, 2], list);
|
|
|
| Expect.throws(() { list.removeRange(-1, -1); },
|
| - (e) => e is IllegalArgumentException);
|
| + (e) => e is ArgumentError);
|
| Expect.listEquals([1, 2], list);
|
|
|
| // A zero length prevails, and does not throw an exception.
|
|
|