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 var animation = document.documentElement.animate([], 1000); | |
| 11 animation.effect.timing.duration = 1500; | |
| 12 assert_times_equal(animation.effect.timing.duration, 1000); | |
| 13 }, 'animation.effect should be rea'); | |
|
alancutter (OOO until 2018)
2016/07/12 05:43:47
Reeeeeeeeeeeeeeeeeeeeeeeea.
nainar
2016/07/12 06:02:53
pants
| |
| 14 | |
| 15 test(function() { | |
|
nainar
2016/07/12 04:44:29
Should this test be removed then?
alancutter (OOO until 2018)
2016/07/12 05:43:47
Sure. It's against spec and not shipping, I think
nainar
2016/07/12 06:02:53
Done.
| |
| 16 document.timeline.playbackRate = 0; | |
| 17 document.timeline.currentTime = 0; | |
| 18 var animation = document.documentElement.animate([], 1000); | |
| 19 animation.startTime = -1000; | |
| 20 | |
| 21 assert_times_equal(animation.currentTime, 1000); | |
| 22 | |
| 23 animation.effect.timing.duration = 1500; | |
| 24 document.timeline.currentTime = 2000; | |
| 25 | |
| 26 assert_times_equal(animation.effect.timing.duration, 1000); | |
| 27 assert_times_equal(animation.startTime, -1000); | |
| 28 assert_times_equal(animation.currentTime, 1500); | |
| 29 }, 'Extending effect should not cause a change in start time.'); | |
| 30 </script> | |
| OLD | NEW |