Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: pkg/unittest/core_matchers.dart

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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. */

Powered by Google App Engine
This is Rietveld 408576698