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

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: ADded test expectations. 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
« no previous file with comments | « pkg/logging/lib/logging.dart ('k') | pkg/unittest/test/matchers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/core_matchers.dart
diff --git a/pkg/unittest/core_matchers.dart b/pkg/unittest/core_matchers.dart
index 9d9d17237d1d91e40d574b2b9015f67fb592951f..d8a31e335aa0d113fb136162ed57e8d117224b27 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 UnsupportedErrors. */
+const isUnsupportedError = const _UnsupportedError();
-/** A matcher for functions that throw UnsupportedOperationException */
-const Matcher throwsUnsupportedOperationException =
- const Throws(isUnsupportedOperationException);
+/** A matcher for functions that throw UnsupportedError */
+const Matcher throwsUnsupportedError =
+ const Throws(isUnsupportedError);
-class _UnsupportedOperationException extends ExceptionMatcher {
- const _UnsupportedOperationException() :
- super("UnsupportedOperationException");
+class _UnsupportedError extends ExceptionMatcher {
+ const _UnsupportedError() :
+ super("UnsupportedError");
bool matches(item, MatchState matchState) =>
- item is UnsupportedOperationException;
+ item is UnsupportedError;
}
/**
« no previous file with comments | « pkg/logging/lib/logging.dart ('k') | pkg/unittest/test/matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698