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

Unified Diff: tests/html/cssstyledeclaration_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/async_window_test.dart ('k') | tests/html/dromaeo_noop/dromaeo_smoke.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/cssstyledeclaration_test.dart
diff --git a/tests/html/cssstyledeclaration_test.dart b/tests/html/cssstyledeclaration_test.dart
index a0ef366835b86183c7f26b1c07b7c31e94b24bb5..1f8660532d9b262095424f1876efe0fbdef8c464 100644
--- a/tests/html/cssstyledeclaration_test.dart
+++ b/tests/html/cssstyledeclaration_test.dart
@@ -6,6 +6,7 @@ library CssStyleDeclarationTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
+import 'dart:async';
main() {
useHtmlConfiguration();
@@ -84,10 +85,10 @@ main() {
document.body.children.add(element);
// Need to wait one tick after the element has been added to the page.
- window.setTimeout(expectAsync0(() {
+ new Timer(const Duration(milliseconds: 10), expectAsync0(() {
element.style.textDecoration = 'underline';
var style = element.getComputedStyle();
expect(style.textDecoration, equals('underline'));
- }), 10);
+ }));
});
}
« no previous file with comments | « tests/html/async_window_test.dart ('k') | tests/html/dromaeo_noop/dromaeo_smoke.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698