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:
efortuna@google.com 2013-02-13 20:50:48 +00:00
parent 8eb3de4f72
commit 5051029f26
2 changed files with 5 additions and 3 deletions

View file

@ -4,6 +4,7 @@
library benchmark_lib;
import 'dart:async';
import 'dart:html';
import 'dart:async';
import 'dart:math' as Math;

View file

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