| Index: pkg/unittest/test/matchers_test.dart
|
| diff --git a/pkg/unittest/test/matchers_test.dart b/pkg/unittest/test/matchers_test.dart
|
| index cf9d567c65f6bf4c7e1a885001b6f7c3ba05c0c8..0e14bec514cca89850c6581dcbaa333a4af89935 100644
|
| --- a/pkg/unittest/test/matchers_test.dart
|
| +++ b/pkg/unittest/test/matchers_test.dart
|
| @@ -115,14 +115,14 @@ void main() {
|
| "IllegalJSRegExpException.");
|
| });
|
|
|
| - test('throwsIndexOutOfRangeException', () {
|
| - shouldPass(() { throw new IndexOutOfRangeException(0); },
|
| - throwsIndexOutOfRangeException);
|
| + test('throwsRangeError', () {
|
| + shouldPass(() { throw new RangeError(0); },
|
| + throwsRangeError);
|
| shouldFail(() { throw new Exception(); },
|
| - throwsIndexOutOfRangeException,
|
| - "Expected: throws an exception which matches IndexOutOfRangeException "
|
| + throwsRangeError,
|
| + "Expected: throws an exception which matches RangeError "
|
| "but: exception <Exception> does not match "
|
| - "IndexOutOfRangeException.");
|
| + "RangeError.");
|
| });
|
|
|
| test('throwsNoSuchMethodError', () {
|
|
|