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

Unified Diff: lib/src/throws_matcher.dart

Issue 840133003: matcher: fixed status file, formatting, tweaks to readme (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: Created 5 years, 11 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: lib/src/throws_matcher.dart
diff --git a/lib/src/throws_matcher.dart b/lib/src/throws_matcher.dart
index b3a5323adbe0eb72e3a6268343f7056f92fe0e6d..461c585be70d8b6cc827dc4a4f6a5905c26f0b48 100644
--- a/lib/src/throws_matcher.dart
+++ b/lib/src/throws_matcher.dart
@@ -93,16 +93,16 @@ class Throws extends Matcher {
}
}
- Description describeMismatch(item, Description mismatchDescription,
- Map matchState,
- bool verbose) {
+ Description describeMismatch(
+ item, Description mismatchDescription, Map matchState, bool verbose) {
if (item is! Function && item is! Future) {
return mismatchDescription.add('is not a Function or Future');
} else if (_matcher == null || matchState['exception'] == null) {
return mismatchDescription.add('did not throw');
} else {
- mismatchDescription. add('threw ').
- addDescriptionOf(matchState['exception']);
+ mismatchDescription
+ .add('threw ')
+ .addDescriptionOf(matchState['exception']);
if (verbose) {
mismatchDescription.add(' at ').add(matchState['stack'].toString());
}
@@ -110,4 +110,3 @@ class Throws extends Matcher {
}
}
}
-

Powered by Google App Engine
This is Rietveld 408576698