| Index: tests/html/history_test.dart
|
| diff --git a/tests/html/history_test.dart b/tests/html/history_test.dart
|
| index 7ee08cec4b53f50132511e5fd42b31997f5ade0f..f2c7c1286cf10f75356c5dfccd508fe878c8ebc6 100644
|
| --- a/tests/html/history_test.dart
|
| +++ b/tests/html/history_test.dart
|
| @@ -2,7 +2,6 @@ library HistoryTest;
|
| import '../../pkg/unittest/lib/unittest.dart';
|
| import '../../pkg/unittest/lib/html_individual_config.dart';
|
| import 'dart:html';
|
| -import 'dart:async';
|
|
|
| main() {
|
| useHtmlIndividualConfiguration();
|
| @@ -43,14 +42,14 @@ main() {
|
| expect(window.location.href.endsWith('dummy2'), isTrue);
|
|
|
| // Need to wait a frame or two to let the pushState events occur.
|
| - new Timer(const Duration(milliseconds: 100), expectAsync0(() {
|
| + window.setTimeout(expectAsync0(() {
|
| window.onPopState.first.then(expectAsync1((_){
|
| expect(window.history.length, length);
|
| expect(window.location.href.endsWith('dummy1'), isTrue);
|
| }));
|
|
|
| window.history.back();
|
| - }));
|
| + }), 100);
|
| }, expectation);
|
| });
|
|
|
|
|