Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: tests/html/js_interop_3_test.dart

Issue 12259037: Reapply remove setTimeout, take 3. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/history_test.dart ('k') | tests/html/js_interop_4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..390c687a9b5c54ac3c63e6797dff517bfa3af070 100644
--- a/tests/html/js_interop_3_test.dart
+++ b/tests/html/js_interop_3_test.dart
@@ -5,6 +5,7 @@
library JsInterop3Test;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
+import 'dart:async';
import 'dart:html';
import 'dart:isolate';
@@ -43,7 +44,7 @@ main() {
var done = expectAsync0(() {});
var fun2 = (message) {
expect(message, 42);
- window.setTimeout(done, 0);
+ Timer.run(done);
};
var port2 = new ReceivePortSync();
« no previous file with comments | « tests/html/history_test.dart ('k') | tests/html/js_interop_4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698