Index: tests/benchmark_smoke/benchmark_smoke_test.dart |
diff --git a/tests/benchmark_smoke/benchmark_smoke_test.dart b/tests/benchmark_smoke/benchmark_smoke_test.dart |
index 2c46a48544c777cb16ac10b00e2d86152d80e3c4..2e4582767376ec179efd19cae66e894a14056e6c 100644 |
--- a/tests/benchmark_smoke/benchmark_smoke_test.dart |
+++ b/tests/benchmark_smoke/benchmark_smoke_test.dart |
@@ -6,6 +6,7 @@ library benchmarksmoketest; |
// Tests that benchmark classes used in perf testing are not broken. |
import 'benchmark_lib.dart'; |
+import 'dart:async'; |
import 'dart:html'; |
import '../../pkg/unittest/lib/unittest.dart'; |
import '../../pkg/unittest/lib/html_config.dart'; |
@@ -13,9 +14,9 @@ import '../../pkg/unittest/lib/html_config.dart'; |
void main() { |
useHtmlConfiguration(); |
- test('performanceTesting', () { |
- window.setTimeout(BENCHMARK_SUITE.runBenchmarks, 0); |
- window.setTimeout(expectAsync0(testForCompletion), 0); |
+ test('performanceTesting', () { |
+ Timer.run(BENCHMARK_SUITE.runBenchmarks); |
+ Timer.run(expectAsync0(testForCompletion)); |
}); |
} |