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

Unified Diff: pkg/unittest/core_matchers.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://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 9d9d17237d1d91e40d574b2b9015f67fb592951f..831efcd067650af9ae9a2f2ee6ee9f92623849d2 100644
--- a/pkg/unittest/core_matchers.dart
+++ b/pkg/unittest/core_matchers.dart
@@ -495,18 +495,18 @@ class _NullPointerException extends ExceptionMatcher {
bool matches(item, MatchState matchState) => item is NullPointerException;
}
-/** A matcher for UnsupportedOperationExceptions. */
-const isUnsupportedOperationException = const _UnsupportedOperationException();
+/** A matcher for StateErrors. */
+const isStateError = const _StateError();
-/** A matcher for functions that throw UnsupportedOperationException */
-const Matcher throwsUnsupportedOperationException =
- const Throws(isUnsupportedOperationException);
+/** A matcher for functions that throw StateError */
+const Matcher throwsStateError =
+ const Throws(isStateError);
-class _UnsupportedOperationException extends ExceptionMatcher {
- const _UnsupportedOperationException() :
- super("UnsupportedOperationException");
+class _StateError extends ExceptionMatcher {
+ const _StateError() :
+ super("StateError");
bool matches(item, MatchState matchState) =>
- item is UnsupportedOperationException;
+ item is StateError;
}
/**

Powered by Google App Engine
This is Rietveld 408576698