| 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);
|
| });
|
| }
|
|
|