| Index: LayoutTests/web-animations-api/timed-item.html
|
| diff --git a/LayoutTests/web-animations-api/timed-item.html b/LayoutTests/web-animations-api/timed-item.html
|
| index 91b995d0567d5716a9dd0b5ba13457216ab3a61f..917d43a9185f74d3364a1a8456b6bc55b0b4f686 100644
|
| --- a/LayoutTests/web-animations-api/timed-item.html
|
| +++ b/LayoutTests/web-animations-api/timed-item.html
|
| @@ -17,18 +17,18 @@ test(function() {
|
| }, 'TimedItem.localTime and TimedItem.currentIteration are null when animation is not associated with a Player');
|
|
|
| test(function() {
|
| - var animation = element.animate(keyframes, {fill: 'both', duration: 2, iterations: 3}).source;
|
| - animation.player.currentTime = -1;
|
| - assert_equals(animation.localTime, -1);
|
| + var animation = element.animate(keyframes, {fill: 'both', duration: 2000, iterations: 3}).source;
|
| + animation.player.currentTime = -1000;
|
| + assert_equals(animation.localTime, -1000, 'localTime');
|
| assert_equals(animation.currentIteration, 0);
|
| - animation.player.currentTime = 1;
|
| - assert_equals(animation.localTime, 1);
|
| + animation.player.currentTime = 1000;
|
| + assert_equals(animation.localTime, 1000);
|
| assert_equals(animation.currentIteration, 0);
|
| - animation.player.currentTime = 5;
|
| - assert_equals(animation.localTime, 5);
|
| + animation.player.currentTime = 5000;
|
| + assert_equals(animation.localTime, 5000);
|
| assert_equals(animation.currentIteration, 2);
|
| - animation.player.currentTime = 7;
|
| - assert_equals(animation.localTime, 7);
|
| + animation.player.currentTime = 7000;
|
| + assert_equals(animation.localTime, 7000);
|
| assert_equals(animation.currentIteration, 2);
|
| }, 'TimedItem.localTime and TimedItem.currentIteration return reasonable values when an animation is in effect');
|
|
|
|
|