Index: tests/html/js_interop_3_test.dart |
diff --git a/tests/html/js_interop_3_test.dart b/tests/html/js_interop_3_test.dart |
index 390c687a9b5c54ac3c63e6797dff517bfa3af070..142c4d9311fdc75a7a7d24a5318697eae2edc5b9 100644 |
--- a/tests/html/js_interop_3_test.dart |
+++ b/tests/html/js_interop_3_test.dart |
@@ -5,7 +5,6 @@ |
library JsInterop3Test; |
import '../../pkg/unittest/lib/unittest.dart'; |
import '../../pkg/unittest/lib/html_config.dart'; |
-import 'dart:async'; |
import 'dart:html'; |
import 'dart:isolate'; |
@@ -44,7 +43,7 @@ main() { |
var done = expectAsync0(() {}); |
var fun2 = (message) { |
expect(message, 42); |
- Timer.run(done); |
+ window.setTimeout(done, 0); |
}; |
var port2 = new ReceivePortSync(); |