Index: tests/html/microtask_test.dart |
diff --git a/tests/html/microtask_test.dart b/tests/html/microtask_test.dart |
index 0dfcc53402b1af737ec8fe8a3949e6db3113373e..10f478475eae638b4a697cc02b5254166f57885e 100644 |
--- a/tests/html/microtask_test.dart |
+++ b/tests/html/microtask_test.dart |
@@ -6,26 +6,27 @@ library microtask_; |
import '../../pkg/unittest/lib/unittest.dart'; |
import '../../pkg/unittest/lib/html_config.dart'; |
import 'dart:html'; |
+import 'dart:async'; |
main() { |
useHtmlConfiguration(); |
- test('setImmediate', () { |
+ test('immediate', () { |
var timeoutCalled = false; |
var rafCalled = false; |
var immediateCalled = false; |
- window.setTimeout(expectAsync0(() { |
+ new Timer(const Duration(milliseconds: 0), expectAsync0(() { |
floitsch
2013/02/13 10:03:07
Timer.run
Emily Fortuna
2013/02/13 20:19:44
Done.
|
timeoutCalled = true; |
expect(immediateCalled, true); |
- }), 0); |
+ })); |
window.requestAnimationFrame((_) { |
rafCalled = true; |
}); |
- window.setImmediate(expectAsync0(() { |
+ window.immediate.then(expectAsync1((_) { |
expect(timeoutCalled, false); |
expect(rafCalled, false); |
immediateCalled = true; |