summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api/player-source-becomes-longer.html
blob: ee86412ac80790ee81c82f8f012244e2bae970e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>

<script>
test(function() {
  document.timeline.playbackRate = 0;
  document.timeline.currentTime = 0;
  var player = document.documentElement.animate([], 1000);
  player.startTime = -1000;

  assert_equals(player.currentTime, 1000);

  player.effect.timing.duration = 1500;
  document.timeline.currentTime = 2000;

  assert_equals(player.startTime, -1000);
  assert_equals(player.currentTime, 1500);
}, 'Extending effect should not cause a change in start time.');
</script>