mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:36:59 +00:00
Fix benchmark smoke test as well with change.
BUG= Review URL: https://codereview.chromium.org//12258018 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18477 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
8eb3de4f72
commit
5051029f26
|
@ -4,6 +4,7 @@
|
|||
|
||||
library benchmark_lib;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:html';
|
||||
import 'dart:async';
|
||||
import 'dart:math' as Math;
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue