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

Unified Diff: pkg/scheduled_test/test/substitute_future_test.dart

Issue 14690009: Make Completers asynchronous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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
Index: pkg/scheduled_test/test/substitute_future_test.dart
diff --git a/pkg/scheduled_test/test/substitute_future_test.dart b/pkg/scheduled_test/test/substitute_future_test.dart
index 7202c86092abe9efbf0a32bf9109204e75ffdb0f..5cffb4b6b62ee494a1071529b935ee6d08898573 100644
--- a/pkg/scheduled_test/test/substitute_future_test.dart
+++ b/pkg/scheduled_test/test/substitute_future_test.dart
@@ -148,7 +148,9 @@ void main() {
var completer = new Completer();
var future = new SubstituteFuture(completer.future);
completer.complete('success');
- expect(() => future.substitute(new Future.value()),
- throwsStateError);
+ future.then(expectAsync1((_) {
+ expect(() => future.substitute(new Future.value()),
+ throwsStateError);
+ }));
nweiz 2013/05/07 00:11:52 [expectAsync*] is usually less expressive than [ex
floitsch 2013/05/13 11:19:25 done in CL 15128002.
});
}
« no previous file with comments | « no previous file | pkg/scheduled_test/test/value_future_test.dart » ('j') | pkg/scheduled_test/test/value_future_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698