Commit 617a078c authored by ericwilligers's avatar ericwilligers Committed by Commit bot

Web Animations: Avoid flakiness in change-in-animation-frame test

We were relying on the test completing within 10ms.

BUG=587711

Review URL: https://codereview.chromium.org/1705103004

Cr-Commit-Position: refs/heads/master@{#376128}
parent a53769e5
......@@ -8,8 +8,8 @@ if (window.testRunner) {
}
requestAnimationFrame(function() {
document.getElementById('pass').animate([{visibility: 'visible'}, {visibility: 'visible'}], 10);
document.getElementById('fail').animate([{visibility: 'hidden'}, {visibility: 'hidden'}], 10);
document.getElementById('pass').animate([{visibility: 'visible'}, {visibility: 'visible'}], {fill: 'forwards'});
document.getElementById('fail').animate([{visibility: 'hidden'}, {visibility: 'hidden'}], {fill: 'forwards'});
if (window.testRunner) {
testRunner.notifyDone();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment