Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / player-source-becomes-longer.html
blobee86412ac80790ee81c82f8f012244e2bae970e0
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 test(function() {
7 document.timeline.playbackRate = 0;
8 document.timeline.currentTime = 0;
9 var player = document.documentElement.animate([], 1000);
10 player.startTime = -1000;
12 assert_equals(player.currentTime, 1000);
14 player.effect.timing.duration = 1500;
15 document.timeline.currentTime = 2000;
17 assert_equals(player.startTime, -1000);
18 assert_equals(player.currentTime, 1500);
19 }, 'Extending effect should not cause a change in start time.');
20 </script>