Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: tests/benchmark_smoke/benchmark_smoke_test.dart

Issue 10412015: aChange all asyncTest/callbackDone style tests to use the new expectAsync/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/benchmark_smoke/benchmark_smoke_test.dart
===================================================================
--- tests/benchmark_smoke/benchmark_smoke_test.dart (revision 7823)
+++ tests/benchmark_smoke/benchmark_smoke_test.dart (working copy)
@@ -12,9 +12,9 @@
void main() {
useHtmlConfiguration();
- asyncTest('performanceTesting', 1, () {
+ test('performanceTesting', () {
window.setTimeout(BENCHMARK_SUITE.runBenchmarks, 0);
- window.setTimeout(testForCompletion, 0);
+ window.setTimeout(expectAsync0(testForCompletion), 0);
});
}
@@ -23,5 +23,4 @@
RegExp re = new RegExp('Score: [0-9]+');
print(element.text);
Expect.isTrue(re.hasMatch(element.text));
- callbackDone();
}

Powered by Google App Engine
This is Rietveld 408576698