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({ marginLeft: "100px" }, { duration: 1000, easing: "steps(10)" });
8
9
await animation.ready;
10
11
animation.currentTime = 225;
12
assert_equals(internals.timeToNextAnimationTick(animation), 75, "Computing the time until the next tick when partly through a steps interval.");
13
14
t.done();
15
}, "Computing the time until the next tick for an effect with a steps() easing.");
16
17
</script>