Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html |
| diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html |
| index bc3422da131df048de4dc3fac5f14116638240e1..997690828c7547efcf7e1b699be94bd4546fa46d 100644 |
| --- a/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html |
| +++ b/third_party/WebKit/LayoutTests/web-animations-api/animation-state-changes-negative-playback-rate.html |
| @@ -19,7 +19,7 @@ function idleAnimation() { |
| function runningAnimation() { |
| var animation = idleAnimation(); |
| animation.play(); |
| - animation.startTime = document.timeline.currentTime + duration; |
| + animation.startTime = document.timeline.currentTime + duration/2; |
|
dstockwell
2016/03/31 03:10:13
Nit. spaces around binary operators.
|
| return animation; |
| } |
| @@ -60,7 +60,7 @@ test(function() { |
| test(function() { |
| var animation = runningAnimation(); |
| assert_equals(animation.startTime, document.timeline.currentTime - (animation.playbackRate * animation.currentTime)); |
| - assert_equals(animation.currentTime, duration); |
| + assert_equals(animation.currentTime, duration/2); |
| assert_equals(animation.playState, 'running'); |
| }, "running"); |
| @@ -204,7 +204,7 @@ test(function() { |
| var animation = runningAnimation(); |
| animation.pause(); |
| assert_unresolved(animation.startTime); |
| - assert_equals(animation.currentTime, duration); |
| + assert_equals(animation.currentTime, duration/2); |
| assert_equals(animation.playState, 'pending'); |
| }, "running -> pause()"); |
| @@ -228,7 +228,7 @@ test(function() { |
| var animation = runningAnimation(); |
| animation.reverse(); |
| assert_unresolved(animation.startTime); |
| - assert_equals(animation.currentTime, 0); |
| + assert_equals(animation.currentTime, duration/2); |
| assert_equals(animation.playState, 'pending'); |
| }, "running -> reverse()"); |