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

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

Issue 212393002: Web Animations API: Ensure timing is updated if a RAF callback makes a player outdated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove assert. Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/change-in-animation-frame-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <div id="pass" style="visibility: hidden">PASS</div>
3 <div id="fail" style="visibility: visible">FAIL</div>
4 <script>
5 requestAnimationFrame(function() {
6 document.getElementById('pass').animate([{visibility: 'visible'}, {visibility: 'visible'}], 10);
7 document.getElementById('fail').animate([{visibility: 'hidden'}, {visibility: 'hidden'}], 10);
8 requestAnimationFrame(function() {
9 document.documentElement.textContent = 'FAIL: Produced a second frame.';
10 });
11 });
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
15 setTimeout(function() {
16 if (window.testRunner) {
17 // Note that the test wont actually finish until the next frame is complet e.
18 testRunner.notifyDone();
19 }
20 }, 0);
21 } else {
22 document.documentElement.textContent = 'FAIL: Test must be run under test harn ess.';
23 }
24 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/web-animations-api/change-in-animation-frame-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698