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

Unified Diff: lib/unittest/core_matchers.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 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 | « lib/math/base.dart ('k') | lib/unittest/unittest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/core_matchers.dart
diff --git a/lib/unittest/core_matchers.dart b/lib/unittest/core_matchers.dart
index 1fc400b3851673477cc9c69ea8059c77c88fad4a..b696dce4aec51c7ecf655e59f32dba05a855bdad 100644
--- a/lib/unittest/core_matchers.dart
+++ b/lib/unittest/core_matchers.dart
@@ -400,16 +400,16 @@ class _ReturnsNormally extends BaseMatcher {
description.add(_name);
}
-/** A matcher for BadNumberFormatExceptions. */
-final isBadNumberFormatException = const _BadNumberFormatException();
+/** A matcher for FormatExceptions. */
+final isFormatException = const _FormatException();
-/** A matcher for functions that throw BadNumberFormatException */
-final Matcher throwsBadNumberFormatException =
- const _Throws(isBadNumberFormatException);
+/** A matcher for functions that throw FormatException */
+final Matcher throwsFormatException =
+ const _Throws(isFormatException);
-class _BadNumberFormatException extends _ExceptionMatcher {
- const _BadNumberFormatException() : super("BadNumberFormatException");
- bool matches(item, MatchState matchState) => item is BadNumberFormatException;
+class _FormatException extends _ExceptionMatcher {
+ const _FormatException() : super("FormatException");
+ bool matches(item, MatchState matchState) => item is FormatException;
}
/** A matcher for Exceptions. */
« no previous file with comments | « lib/math/base.dart ('k') | lib/unittest/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698