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

Unified Diff: tests/dom/request_animation_frame_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/dom/request_animation_frame_test.dart
===================================================================
--- tests/dom/request_animation_frame_test.dart (revision 7823)
+++ tests/dom/request_animation_frame_test.dart (working copy)
@@ -10,20 +10,20 @@
main() {
useDomConfiguration();
- asyncTest('oneShot', 1, () {
- window.webkitRequestAnimationFrame((timestamp) { callbackDone(); });
+ test('oneShot', () {
+ window.webkitRequestAnimationFrame(expectAsync1((timestamp) { }));
layoutTestController.display();
});
- asyncTest('twoShot', 1, () {
+ test('twoShot', () {
window.webkitRequestAnimationFrame(
(timestamp1) {
window.webkitRequestAnimationFrame(
- (timestamp2) {
+ expectAsync1((timestamp2) {
// Not monotonic on Safari and IE.
- //Expect.isTrue(timestamp2 > timestamp1, 'timestamps ordered');
- callbackDone();
- });
+ // Expect.isTrue(timestamp2 > timestamp1,
+ // 'timestamps ordered');
+ }));
layoutTestController.display();
});
layoutTestController.display();

Powered by Google App Engine
This is Rietveld 408576698