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

Unified Diff: tests/standalone/io/fuzz_support.dart

Issue 12224081: Change Future.delayed to take a Duration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments and made argument optional. Created 7 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 | « tests/lib/async/stream_from_iterable_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/fuzz_support.dart
diff --git a/tests/standalone/io/fuzz_support.dart b/tests/standalone/io/fuzz_support.dart
index 4c7cd1cd3990767b79e0bc106154bed7b3b24ae7..e6caa12dfc83edea89031e4f18528534d5e6492f 100644
--- a/tests/standalone/io/fuzz_support.dart
+++ b/tests/standalone/io/fuzz_support.dart
@@ -49,5 +49,7 @@ doItSync(Function f) {
// completion.
Future doItAsync(void f()) {
// Ignore value and errors.
- return new Future.delayed(0, f).catchError((_) {}).then((_) => true);
+ return new Future.delayed(Duration.ZERO, f)
+ .catchError((_) {})
+ .then((_) => true);
}
« no previous file with comments | « tests/lib/async/stream_from_iterable_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698