| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Test play state changes for animations with a negative playback rate</tit
le> | 3 <title>Test play state changes for animations with a negative playback rate</tit
le> |
| 4 <link rel="help" href="http://w3c.github.io/web-animations/#play-state"> | 4 <link rel="help" href="http://w3c.github.io/web-animations/#play-state"> |
| 5 <script src="../external/wpt/web-animations/testcommon.js"></script> | 5 <script src="../external/wpt/web-animations/testcommon.js"></script> |
| 6 <script src="../resources/testharness.js"></script> | 6 <script src="../resources/testharness.js"></script> |
| 7 <script src="../resources/testharnessreport.js"></script> | 7 <script src="../resources/testharnessreport.js"></script> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 var duration = 100000; | 10 var duration = 100000; |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 }, "Calling reverse() on a finished animation"); | 349 }, "Calling reverse() on a finished animation"); |
| 350 | 350 |
| 351 test(function() { | 351 test(function() { |
| 352 var animation = finishedAnimation(); | 352 var animation = finishedAnimation(); |
| 353 animation.currentTime = 1000; | 353 animation.currentTime = 1000; |
| 354 assert_times_equal(animation.startTime, document.timeline.currentTime - (anima
tion.playbackRate * animation.currentTime)); | 354 assert_times_equal(animation.startTime, document.timeline.currentTime - (anima
tion.playbackRate * animation.currentTime)); |
| 355 assert_equals(animation.currentTime, 1000); | 355 assert_equals(animation.currentTime, 1000); |
| 356 assert_equals(animation.playState, 'running'); | 356 assert_equals(animation.playState, 'running'); |
| 357 }, "Setting currentTime on a finished animation"); | 357 }, "Setting currentTime on a finished animation"); |
| 358 </script> | 358 </script> |
| OLD | NEW |