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

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: Created 7 years, 8 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 | pkg/scheduled_test/test/value_future_test.dart » ('j') | sdk/lib/async/future.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ }));
});
}
« no previous file with comments | « no previous file | pkg/scheduled_test/test/value_future_test.dart » ('j') | sdk/lib/async/future.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698