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

Unified Diff: pkg/matcher/lib/src/error_matchers.dart

Issue 302093013: pkg/matcher: small nits from previous CL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cl nits Created 6 years, 7 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/matcher/lib/src/core_matchers.dart ('k') | pkg/matcher/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/lib/src/error_matchers.dart
diff --git a/pkg/matcher/lib/src/error_matchers.dart b/pkg/matcher/lib/src/error_matchers.dart
index b50f766e5f4ffe4137d8e764f372e366d9b68bc7..8418e0de535c505c7f2390e668b26777c58a64b8 100644
--- a/pkg/matcher/lib/src/error_matchers.dart
+++ b/pkg/matcher/lib/src/error_matchers.dart
@@ -9,7 +9,7 @@ import 'interfaces.dart';
/// A matcher for AbstractClassInstantiationError.
@deprecated
-const isAbstractClassInstantiationError =
+const Matcher isAbstractClassInstantiationError =
const _AbstractClassInstantiationError();
/// A matcher for functions that throw AbstractClassInstantiationError.
@@ -24,7 +24,7 @@ class _AbstractClassInstantiationError extends TypeMatcher {
}
/// A matcher for ArgumentErrors.
-const isArgumentError = const _ArgumentError();
+const Matcher isArgumentError = const _ArgumentError();
/// A matcher for functions that throw ArgumentError.
const Matcher throwsArgumentError = const Throws(isArgumentError);
@@ -35,7 +35,8 @@ class _ArgumentError extends TypeMatcher {
}
/// A matcher for ConcurrentModificationError.
-const isConcurrentModificationError = const _ConcurrentModificationError();
+const Matcher isConcurrentModificationError =
+ const _ConcurrentModificationError();
/// A matcher for functions that throw ConcurrentModificationError.
const Matcher throwsConcurrentModificationError =
@@ -47,7 +48,7 @@ class _ConcurrentModificationError extends TypeMatcher {
}
/// A matcher for CyclicInitializationError.
-const isCyclicInitializationError = const _CyclicInitializationError();
+const Matcher isCyclicInitializationError = const _CyclicInitializationError();
/// A matcher for functions that throw CyclicInitializationError.
const Matcher throwsCyclicInitializationError =
@@ -59,7 +60,7 @@ class _CyclicInitializationError extends TypeMatcher {
}
/// A matcher for Exceptions.
-const isException = const _Exception();
+const Matcher isException = const _Exception();
/// A matcher for functions that throw Exception.
const Matcher throwsException = const Throws(isException);
@@ -71,7 +72,7 @@ class _Exception extends TypeMatcher {
/// A matcher for FallThroughError.
@deprecated
-const isFallThroughError = const _FallThroughError();
+const Matcher isFallThroughError = const _FallThroughError();
/// A matcher for functions that throw FallThroughError.
@deprecated
@@ -83,7 +84,7 @@ class _FallThroughError extends TypeMatcher {
}
/// A matcher for FormatExceptions.
-const isFormatException = const _FormatException();
+const Matcher isFormatException = const _FormatException();
/// A matcher for functions that throw FormatException.
const Matcher throwsFormatException = const Throws(isFormatException);
@@ -94,7 +95,7 @@ class _FormatException extends TypeMatcher {
}
/// A matcher for NoSuchMethodErrors.
-const isNoSuchMethodError = const _NoSuchMethodError();
+const Matcher isNoSuchMethodError = const _NoSuchMethodError();
/// A matcher for functions that throw NoSuchMethodError.
const Matcher throwsNoSuchMethodError = const Throws(isNoSuchMethodError);
@@ -105,7 +106,7 @@ class _NoSuchMethodError extends TypeMatcher {
}
/// A matcher for NullThrownError.
-const isNullThrownError = const _NullThrownError();
+const Matcher isNullThrownError = const _NullThrownError();
/// A matcher for functions that throw NullThrownError.
const Matcher throwsNullThrownError = const Throws(isNullThrownError);
@@ -116,7 +117,7 @@ class _NullThrownError extends TypeMatcher {
}
/// A matcher for RangeErrors.
-const isRangeError = const _RangeError();
+const Matcher isRangeError = const _RangeError();
/// A matcher for functions that throw RangeError.
const Matcher throwsRangeError = const Throws(isRangeError);
@@ -127,7 +128,7 @@ class _RangeError extends TypeMatcher {
}
/// A matcher for StateErrors.
-const isStateError = const _StateError();
+const Matcher isStateError = const _StateError();
/// A matcher for functions that throw StateError.
const Matcher throwsStateError = const Throws(isStateError);
@@ -138,7 +139,7 @@ class _StateError extends TypeMatcher {
}
/// A matcher for UnimplementedErrors.
-const isUnimplementedError = const _UnimplementedError();
+const Matcher isUnimplementedError = const _UnimplementedError();
/// A matcher for functions that throw Exception.
const Matcher throwsUnimplementedError = const Throws(isUnimplementedError);
@@ -149,7 +150,7 @@ class _UnimplementedError extends TypeMatcher {
}
/// A matcher for UnsupportedError.
-const isUnsupportedError = const _UnsupportedError();
+const Matcher isUnsupportedError = const _UnsupportedError();
/// A matcher for functions that throw UnsupportedError.
const Matcher throwsUnsupportedError = const Throws(isUnsupportedError);
« no previous file with comments | « pkg/matcher/lib/src/core_matchers.dart ('k') | pkg/matcher/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698