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

Unified Diff: tests/html/cssstyledeclaration_test.dart

Issue 12258020: Reverting setTimeout removal. (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/history_test.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 1f8660532d9b262095424f1876efe0fbdef8c464..a0ef366835b86183c7f26b1c07b7c31e94b24bb5 100644
--- a/tests/html/cssstyledeclaration_test.dart
+++ b/tests/html/cssstyledeclaration_test.dart
@@ -6,7 +6,6 @@ library CssStyleDeclarationTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
-import 'dart:async';
main() {
useHtmlConfiguration();
@@ -85,10 +84,10 @@ main() {
document.body.children.add(element);
// Need to wait one tick after the element has been added to the page.
- new Timer(const Duration(milliseconds: 10), expectAsync0(() {
+ window.setTimeout(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/history_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698