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

Side by Side Diff: LayoutTests/transitions/interrupted-immediately.html

Issue 1113173003: Web Animations: Update naming to reflect spec changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use new API in layout tests Created 5 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 #container { 6 #container {
7 position: relative; 7 position: relative;
8 width: 400px; 8 width: 400px;
9 height: 100px; 9 height: 100px;
10 border: 1px solid black; 10 border: 1px solid black;
(...skipping 22 matching lines...) Expand all
33 33
34 box.style.left = '300px'; 34 box.style.left = '300px';
35 box.offsetTop; // force transition start 35 box.offsetTop; // force transition start
36 36
37 box.style.left = '0px' 37 box.style.left = '0px'
38 box.offsetTop; // force transition interruption 38 box.offsetTop; // force transition interruption
39 39
40 // Force at least one timing update and recalc after the interruption. 40 // Force at least one timing update and recalc after the interruption.
41 id = requestAnimationFrame(function() { 41 id = requestAnimationFrame(function() {
42 cancelAnimationFrame(id); 42 cancelAnimationFrame(id);
43 var current = document.timeline.getAnimationPlayers().length; 43 var current = document.timeline.getAnimations().length;
44 document.getElementById('result').innerHTML = (current == 0) ? "PASS" : "FAIL"; 44 document.getElementById('result').innerHTML = (current == 0) ? "PASS" : "FAIL";
45 if (window.testRunner) 45 if (window.testRunner)
46 testRunner.notifyDone(); 46 testRunner.notifyDone();
47 }); 47 });
48 } 48 }
49 window.addEventListener('load', startTransition, false) 49 window.addEventListener('load', startTransition, false)
50 </script> 50 </script>
51 </head> 51 </head>
52 <body> 52 <body>
53 53
54 <p>Box should stay left as style is reset immediately</p> 54 <p>Box should stay left as style is reset immediately</p>
55 <div id="container"> 55 <div id="container">
56 <div id="box"> 56 <div id="box">
57 </div> 57 </div>
58 </div> 58 </div>
59 <div id="result"> 59 <div id="result">
60 </div> 60 </div>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698