Chromium Code Reviews| 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 142c4d9311fdc75a7a7d24a5318697eae2edc5b9..29815109cad4b9aaf24a8d565f87d7f2ee6485cb 100644 |
| --- a/tests/html/js_interop_3_test.dart |
| +++ b/tests/html/js_interop_3_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'; |
| injectSource(code) { |
| final script = new ScriptElement(); |
| @@ -43,7 +44,7 @@ main() { |
| var done = expectAsync0(() {}); |
| var fun2 = (message) { |
| expect(message, 42); |
| - 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(); |