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

Unified Diff: pkg/unittest/lib/future_matchers.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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: pkg/unittest/lib/future_matchers.dart
===================================================================
--- pkg/unittest/lib/future_matchers.dart (revision 0)
+++ pkg/unittest/lib/future_matchers.dart (working copy)
@@ -12,7 +12,7 @@
* [throwsA].
*/
-part of unittest;
+part of matcher;
Matcher completes = const _Completes(null);
@@ -35,7 +35,7 @@
bool matches(item, MatchState matchState) {
if (item is! Future) return false;
- item.onComplete(expectAsync1((future) {
+ item.onComplete(_wrapAsync((future) {
var reason = 'Expected future to complete successfully, but it failed '
'with ${future.exception}';
if (future.stackTrace != null) {

Powered by Google App Engine
This is Rietveld 408576698