Index: tests/html/js_interop_4_test.dart |
diff --git a/tests/html/js_interop_4_test.dart b/tests/html/js_interop_4_test.dart |
index 935c790a166860a8ad0172b355959888350b192a..944506b73c0bcfe48dce612a9b99d53b55dcc47e 100644 |
--- a/tests/html/js_interop_4_test.dart |
+++ b/tests/html/js_interop_4_test.dart |
@@ -5,6 +5,7 @@ |
library JsInterop4Test; |
import '../../pkg/unittest/lib/unittest.dart'; |
import '../../pkg/unittest/lib/html_config.dart'; |
+import 'dart:async'; |
import 'dart:html'; |
import 'dart:isolate'; |
@@ -52,7 +53,7 @@ main() { |
var done = expectAsync0(() {}); |
var fun2 = (message) { |
expect(message, 3); |
- window.setTimeout(done, 0); |
+ Timer.run(done); |
}; |
var port2 = new ReceivePortSync(); |