Index: pkg/unittest/core_matchers.dart |
diff --git a/pkg/unittest/core_matchers.dart b/pkg/unittest/core_matchers.dart |
index 66201f44dfd38f62fa2940a37cf32e1af550f6cb..fc40400933f0462cadef8a8a7b23ab8d37e3a401 100644 |
--- a/pkg/unittest/core_matchers.dart |
+++ b/pkg/unittest/core_matchers.dart |
@@ -453,16 +453,16 @@ class _IllegalJSRegExpException extends TypeMatcher { |
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 TypeMatcher { |
- const _IndexOutOfRangeException() : super("IndexOutOfRangeException"); |
- bool matches(item, MatchState matchState) => item is IndexOutOfRangeException; |
+class _RangeError extends TypeMatcher { |
+ const _RangeError() : super("RangeError"); |
+ bool matches(item, MatchState matchState) => item is RangeError; |
} |
/** A matcher for NoSuchMethodErrors. */ |