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

Unified Diff: lib/src/prints_matcher.dart

Issue 936693002: Stop using [wrapAsync] in the [prints] matcher. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/prints_matcher.dart
diff --git a/lib/src/prints_matcher.dart b/lib/src/prints_matcher.dart
index 1753f0da9f942fe9e6c989603474148a35128b8d..92efdcac5e0ae9befd318035a7c4b0e2b1880240 100644
--- a/lib/src/prints_matcher.dart
+++ b/lib/src/prints_matcher.dart
@@ -6,7 +6,7 @@ library unittest.prints_matcher;
import 'dart:async';
-import 'package:matcher/matcher.dart' hide completes, wrapAsync, expect;
+import 'package:matcher/matcher.dart' hide completes, expect;
import '../unittest.dart';
@@ -40,9 +40,9 @@ class _Prints extends Matcher {
return _matcher.matches(actual, matchState);
}
- return completes.matches(result.then(wrapAsync((_) {
+ return completes.matches(result.then((_) {
expect(buffer.toString(), _matcher);
- }, 'prints')), matchState);
+ }), matchState);
}
Description describe(Description description) =>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698