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

Unified Diff: tests/lib/async/future_test.dart

Issue 12224081: Change Future.delayed to take a Duration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove const Duration(). 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
Index: tests/lib/async/future_test.dart
diff --git a/tests/lib/async/future_test.dart b/tests/lib/async/future_test.dart
index 5458e8380c61edc004be148bde7fa164899d09ed..da514584820faee05d7a8ee990dcdede73a91a80 100644
--- a/tests/lib/async/future_test.dart
+++ b/tests/lib/async/future_test.dart
@@ -564,7 +564,8 @@ testChainedFutureValueDelay() {
final future = completer.future;
var port = new ReceivePort();
- future.then((v) => new Future.delayed(10, () => v * 2))
+ future.then((v) => new Future.delayed(const Duration(milliseconds: 10),
+ () => v * 2))
.then((v) {
Expect.equals(42, v);
port.close();

Powered by Google App Engine
This is Rietveld 408576698