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; |
} |
/** |