Chromium Code Reviews| 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,19 @@ |
| 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'); |
|
Siggi Cherem (dart-lang)
2012/05/21 22:20:47
would you mind fixing this 80 col here?
gram
2012/05/22 17:36:36
Done.
|
| - callbackDone(); |
| - }); |
| + })); |
| layoutTestController.display(); |
| }); |
| layoutTestController.display(); |