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

Unified Diff: tests/html/microtask_test.dart

Issue 12218131: Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also (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/js_interop_4_test.dart ('k') | tests/html/transition_event_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/microtask_test.dart
diff --git a/tests/html/microtask_test.dart b/tests/html/microtask_test.dart
index 0dfcc53402b1af737ec8fe8a3949e6db3113373e..79adb284c72dd6dfa9a922b3145656993195c9a3 100644
--- a/tests/html/microtask_test.dart
+++ b/tests/html/microtask_test.dart
@@ -5,6 +5,7 @@
library microtask_;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
+import 'dart:async';
import 'dart:html';
main() {
@@ -15,10 +16,10 @@ main() {
var rafCalled = false;
var immediateCalled = false;
- window.setTimeout(expectAsync0(() {
+ Timer.run(expectAsync0(() {
timeoutCalled = true;
expect(immediateCalled, true);
- }), 0);
+ }));
window.requestAnimationFrame((_) {
« no previous file with comments | « tests/html/js_interop_4_test.dart ('k') | tests/html/transition_event_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698