Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/change-in-animation-frame.html

Issue 1705103004: Web Animations: Avoid flakiness in change-in-animation-frame test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <div id="pass" style="visibility: hidden">PASS</div> 2 <div id="pass" style="visibility: hidden">PASS</div>
3 <div id="fail" style="visibility: visible">FAIL</div> 3 <div id="fail" style="visibility: visible">FAIL</div>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 requestAnimationFrame(function() { 10 requestAnimationFrame(function() {
11 document.getElementById('pass').animate([{visibility: 'visible'}, {visibility: 'visible'}], 10); 11 document.getElementById('pass').animate([{visibility: 'visible'}, {visibility: 'visible'}], {fill: 'forwards'});
12 document.getElementById('fail').animate([{visibility: 'hidden'}, {visibility: 'hidden'}], 10); 12 document.getElementById('fail').animate([{visibility: 'hidden'}, {visibility: 'hidden'}], {fill: 'forwards'});
13 if (window.testRunner) { 13 if (window.testRunner) {
14 testRunner.notifyDone(); 14 testRunner.notifyDone();
15 } 15 }
16 }); 16 });
17 </script> 17 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698