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

Unified Diff: samples/tests/samples/swarm/swarm_test.dart

Issue 12218131: Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: samples/tests/samples/swarm/swarm_test.dart
diff --git a/samples/tests/samples/swarm/swarm_test.dart b/samples/tests/samples/swarm/swarm_test.dart
index 59edc3adff74794bc2442efb378c6fb91b51b59e..02e9ff2d5ae57185cbe0ae8db717e7ff8a45e730 100644
--- a/samples/tests/samples/swarm/swarm_test.dart
+++ b/samples/tests/samples/swarm/swarm_test.dart
@@ -5,6 +5,7 @@
library swarm_tests;
import 'dart:html';
+import 'dart:async';
import '../../../swarm/swarmlib.dart';
import '../../../swarm/swarm_ui_lib/base/base.dart';
import '../../../swarm/swarm_ui_lib/view/view.dart';
@@ -149,9 +150,9 @@ void _serialInvokeAsync(List closures) {
closures[i]();
i++;
if (i < length) {
- window.setTimeout(expectAsync0(invokeNext), 0);
+ new Timer(const Duration(milliseconds: 0), expectAsync0(invokeNext));
floitsch 2013/02/13 10:03:07 Timer.run
Emily Fortuna 2013/02/13 20:19:44 Done.
}
}
- window.setTimeout(expectAsync0(invokeNext), 0);
+ new Timer(const Duration(milliseconds: 0), expectAsync0(invokeNext));
floitsch 2013/02/13 10:03:07 Timer.run
Emily Fortuna 2013/02/13 20:19:44 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698