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

Unified Diff: tests/html/microtask_test.dart

Issue 12212200: "Reverting 18531" (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 79adb284c72dd6dfa9a922b3145656993195c9a3..0dfcc53402b1af737ec8fe8a3949e6db3113373e 100644
--- a/tests/html/microtask_test.dart
+++ b/tests/html/microtask_test.dart
@@ -5,7 +5,6 @@
library microtask_;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
-import 'dart:async';
import 'dart:html';
main() {
@@ -16,10 +15,10 @@ main() {
var rafCalled = false;
var immediateCalled = false;
- Timer.run(expectAsync0(() {
+ window.setTimeout(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