| Index: pkg/unittest/core_matchers.dart
|
| diff --git a/pkg/unittest/core_matchers.dart b/pkg/unittest/core_matchers.dart
|
| index e71e49176baa4e0a938b7c04fcabcd1f19e87705..6762a8aeb229ca9e77f46e2d11f62ed35dcc151b 100644
|
| --- a/pkg/unittest/core_matchers.dart
|
| +++ b/pkg/unittest/core_matchers.dart
|
| @@ -447,16 +447,16 @@ class _IllegalJSRegExpException extends ExceptionMatcher {
|
| bool matches(item, MatchState matchState) => item is IllegalJSRegExpException;
|
| }
|
|
|
| -/** A matcher for IndexOutOfRangeExceptions. */
|
| -const isIndexOutOfRangeException = const _IndexOutOfRangeException();
|
| +/** A matcher for RangeErrors. */
|
| +const isRangeError = const _RangeError();
|
|
|
| -/** A matcher for functions that throw IndexOutOfRangeException */
|
| -const Matcher throwsIndexOutOfRangeException =
|
| - const Throws(isIndexOutOfRangeException);
|
| +/** A matcher for functions that throw RangeError */
|
| +const Matcher throwsRangeError =
|
| + const Throws(isRangeError);
|
|
|
| -class _IndexOutOfRangeException extends ExceptionMatcher {
|
| - const _IndexOutOfRangeException() : super("IndexOutOfRangeException");
|
| - bool matches(item, MatchState matchState) => item is IndexOutOfRangeException;
|
| +class _RangeError extends ExceptionMatcher {
|
| + const _RangeError() : super("RangeError");
|
| + bool matches(item, MatchState matchState) => item is RangeError;
|
| }
|
|
|
| /** A matcher for NoSuchMethodErrors. */
|
|
|