Skip to content

Commit

Permalink
Merge pull request web-platform-tests#19 from alancutter/zeroPlayback…
Browse files Browse the repository at this point in the history
…Rate

Upstream animation-playbackRate.html from Blink
  • Loading branch information
suzyh committed Jul 19, 2016
2 parents 5f29082 + d3c9003 commit 0015354
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web-animations/timing-model/animations/current-time.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,17 @@
'Animation has a unresolved start time');
}, 'The current time is calculated from the timeline time, start time and ' +
'playback rate');

promise_test(function(t) {
var animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
animation.playbackRate = 0;

return animation.ready.then(function() {
return waitForAnimationFrames(1);
}).then(function() {
assert_times_equal(animation.currentTime, 0);
});
}, 'The current time does not progress if playback rate is 0');

</script>
</body>

0 comments on commit 0015354

Please sign in to comment.