| Index: pkg/unittest/lib/src/core_matchers.dart
|
| diff --git a/pkg/unittest/lib/src/core_matchers.dart b/pkg/unittest/lib/src/core_matchers.dart
|
| index 586c8eb5202c62b07e52d9dcd82e44761c6af12d..9d0fb2adefa73919d04a6a044dca565c20701aa5 100644
|
| --- a/pkg/unittest/lib/src/core_matchers.dart
|
| +++ b/pkg/unittest/lib/src/core_matchers.dart
|
| @@ -465,6 +465,19 @@ class _RangeError extends TypeMatcher {
|
| bool matches(item, MatchState matchState) => item is RangeError;
|
| }
|
|
|
| +// Temporary matcher for deprecated IndexOutOfRangeException.
|
| +/** A matcher for IndexOutOfRangeExceptions. */
|
| +const isIndexOutOfRangeException = const _IndexOutOfRangeException();
|
| +
|
| +/** A matcher for functions that throw IndexOutOfRangeException. */
|
| +const Matcher throwsIndexOutOfRangeException =
|
| + const Throws(isIndexOutOfRangeException);
|
| +
|
| +class _IndexOutOfRangeException extends TypeMatcher {
|
| + const _IndexOutOfRangeException() : super("IndexOutOfRangeException");
|
| + bool matches(item, MatchState matchState) => item is IndexOutOfRangeException;
|
| +}
|
| +
|
| /** A matcher for NoSuchMethodErrors. */
|
| const isNoSuchMethodError = const _NoSuchMethodError();
|
|
|
|
|