fune/testing/web-platform/tests/web-animations/timing-model/animations/reverse-running-animation-ref.html
Kevin Ellis cb42ded817 Bug 1654869 [wpt PR 24727] - Remove use of setTimeout in ref test for web-animations, a=testonly
Automatic update from web-platform-tests
Remove use of setTimeout in ref test for web-animations

Use requestAnimationFrames instead of setTimeouts in the ref tests to
accommodate variability in timing. The background color is animated
between green and red to better align with reftest guidelines.

The test to slow down the animation was removed since it would be
essentially equivalent to the zero playback rate test after the
refactoring.

Bug: 1108342, 1064127
Change-Id: Ie933b68cf45caabfa70fbe5deb881e120ea5e28a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2313157
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791833}

--

wpt-commits: 5042344eb8042c6a5be8815add424e45a880f0fc
wpt-pr: 24727
2020-07-31 12:02:05 +00:00

17 lines
385 B
HTML

<!DOCTYPE html>
<title>Reference for reverse running animation</title>
<style>
#box {
background: green;
height: 40px;
width: 40px;
}
</style>
<body>
<div id="box"></div>
<p id="notes">
This test animates the box color from green to red and reverses the play
direction shortly after the midpoint. If the box remains red, the test
failed.
</p>
</body>