| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script src="../resources/testharness.js"></script> | |
| 3 <script src="../resources/testharnessreport.js"></script> | |
| 4 <div id="target"></div> | |
| 5 <script> | |
| 6 test(function() { | |
| 7 var keyframes = [ | |
| 8 {left: '0px'}, | |
| 9 {left: '100px'} | |
| 10 ]; | |
| 11 var timing = { | |
| 12 duration: 1, | |
| 13 delay: -100, | |
| 14 }; | |
| 15 var player = target.animate(keyframes, timing); | |
| 16 document.timeline.currentTime = 0; | |
| 17 var oldStartTime = player.startTime; | |
| 18 player.startTime += 2000; | |
| 19 assert_equals(player.startTime, oldStartTime + 2000); | |
| 20 player.play(); | |
| 21 assert_equals(player.startTime, null); | |
| 22 assert_equals(player.currentTime, 0); | |
| 23 }, 'Play() called with a large negative delay'); | |
| 24 </script> | |
| OLD | NEW |