Revision control

1
<script src="../resources/testharness.js"></script>
2
<script src="../resources/testharnessreport.js"></script>
3
<div></div>
4
<script>
5
6
async_test(async t => {
7
const animation = document.querySelector("div").animate({
8
marginLeft: ["0", "250px", "500px", "750px", "1000px"],
9
easing: ["linear", "linear", "steps(10)", "linear"]
10
}, 1000);
11
12
await animation.ready;
13
14
animation.currentTime = 535;
15
assert_equals(internals.timeToNextAnimationTick(animation), 15);
16
17
t.done();
18
}, "Computing the time until the next tick for a keyframe with a steps() timing function.");
19
20
</script>