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

Unified Diff: tests/html/transition_event_test.dart

Issue 12254046: Reapply setTimeout change. (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/microtask_test.dart ('k') | tests/html/window_open_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/transition_event_test.dart
diff --git a/tests/html/transition_event_test.dart b/tests/html/transition_event_test.dart
index c96b46b4dd0b5458e87e67c0a0efad689df90b64..8e041105354de264849adb5c517e88a7d0e59199 100644
--- a/tests/html/transition_event_test.dart
+++ b/tests/html/transition_event_test.dart
@@ -6,6 +6,7 @@ library transition_event_test;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:html';
+import 'dart:async';
main() {
useHtmlIndividualConfiguration();
@@ -28,14 +29,14 @@ main() {
element.style.background = 'red';
element.style.transition = 'opacity .1s';
- window.setTimeout(expectAsync0(() {
+ new Timer(const Duration(milliseconds: 100), expectAsync0(() {
element.onTransitionEnd.first.then(expectAsync1((e) {
expect(e is TransitionEvent, isTrue);
expect(e.propertyName, 'opacity');
}));
element.style.opacity = '1';
- }), 100);
+ }));
}
});
});
« no previous file with comments | « tests/html/microtask_test.dart ('k') | tests/html/window_open_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698