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..915e5b96e8dbef29276bd1ff07481053c915810c 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); |
+ Timer.run(expectAsync0(invokeNext)); |
} |
} |
- window.setTimeout(expectAsync0(invokeNext), 0); |
+ Timer.run(expectAsync0(invokeNext)); |
} |
} |