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..4adc7ce2f22c8bba45772b4d253af560daeba3a8 100644 |
--- a/tests/html/js_interop_4_test.dart |
+++ b/tests/html/js_interop_4_test.dart |
@@ -7,6 +7,7 @@ import '../../pkg/unittest/lib/unittest.dart'; |
import '../../pkg/unittest/lib/html_config.dart'; |
import 'dart:html'; |
import 'dart:isolate'; |
+import 'dart:async'; |
const testData = const [1, '2', 'true']; |
@@ -52,7 +53,7 @@ main() { |
var done = expectAsync0(() {}); |
var fun2 = (message) { |
expect(message, 3); |
- window.setTimeout(done, 0); |
+ new Timer(const Duration(milliseconds: 0), done); |
floitsch
2013/02/13 10:03:07
Timer.run
Emily Fortuna
2013/02/13 20:19:44
Done.
|
}; |
var port2 = new ReceivePortSync(); |