Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <meta charset=utf-8> | |
| 3 <title>Test that extending effect should not cause a change in start time</title > | |
| 4 <link rel="https://w3c.github.io/web-animations/#the-animation-interface"> | |
| 5 <script src="../resources/testharness.js"></script> | |
| 6 <script src="../resources/testharnessreport.js"></script> | |
| 7 <script src="../imported/wpt/web-animations/testcommon.js"></script> | |
| 8 <script> | |
| 9 test(function() { | |
| 10 document.timeline.playbackRate = 0; | |
| 11 document.timeline.currentTime = 0; | |
| 12 var animation = document.documentElement.animate([], 1000); | |
| 13 animation.startTime = -1000; | |
| 14 | |
| 15 assert_times_equal(animation.currentTime, 1000); | |
| 16 | |
| 17 animation.effect.timing.duration = 1500; | |
|
alancutter (OOO until 2018)
2016/07/12 03:39:10
The effect on the Animation interface is readonly.
| |
| 18 document.timeline.currentTime = 2000; | |
| 19 | |
| 20 assert_times_equal(animation.startTime, -1000); | |
| 21 assert_times_equal(animation.currentTime, 1500); | |
| 22 }, 'Extending effect should not cause a change in start time.'); | |
| 23 </script> | |
| OLD | NEW |