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

Unified Diff: lib/src/future_matchers.dart

Issue 840133003: matcher: fixed status file, formatting, tweaks to readme (Closed) Base URL: https://github.com/dart-lang/matcher.git@master
Patch Set: nits 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
« no previous file with comments | « lib/src/expect.dart ('k') | lib/src/interfaces.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/future_matchers.dart
diff --git a/lib/src/future_matchers.dart b/lib/src/future_matchers.dart
index 615b5880fc0d9bb2905a69378b0865e675aff1b2..bdbd62f734dc5da3ae271a78fd491560459cbece 100644
--- a/lib/src/future_matchers.dart
+++ b/lib/src/future_matchers.dart
@@ -46,11 +46,13 @@ class _Completes extends Matcher {
var done = wrapAsync((fn) => fn(), _id);
item.then((value) {
- done(() { if (_matcher != null) expect(value, _matcher); });
+ done(() {
+ if (_matcher != null) expect(value, _matcher);
+ });
}, onError: (error, trace) {
var id = _id == '' ? '' : '${_id} ';
var reason = 'Expected future ${id}to complete successfully, '
- 'but it failed with ${error}';
+ 'but it failed with ${error}';
if (trace != null) {
var stackTrace = trace.toString();
stackTrace = ' ${stackTrace.replaceAll('\n', '\n ')}';
« no previous file with comments | « lib/src/expect.dart ('k') | lib/src/interfaces.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698