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

Side by Side Diff: third_party/WebKit/LayoutTests/transitions/repeated-firing-background-color.html

Issue 2947103002: Expose getAnimations as function on Document (Closed)
Patch Set: Rebase Created 3 years, 5 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 div { 4 div {
5 transition: background-color .15s linear; 5 transition: background-color .15s linear;
6 } 6 }
7 div.trans { 7 div.trans {
8 background-color: hsla(0, 50%, 50%, 1); 8 background-color: hsla(0, 50%, 50%, 1);
9 } 9 }
10 </style> 10 </style>
11 <script> 11 <script>
12 function checkRunning() 12 function checkRunning()
13 { 13 {
14 var current = document.timeline.getAnimations().length; 14 var current = document.getAnimations().length;
15 if (current == 0) 15 if (current == 0)
16 document.getElementById('result').innerHTML = "PASS: Number of active tr ansitions is (0) as expected"; 16 document.getElementById('result').innerHTML = "PASS: Number of active tr ansitions is (0) as expected";
17 else 17 else
18 document.getElementById('result').innerHTML = "FAIL: Number of active tr ansitions is (" + current + ") but was expecting (0)"; 18 document.getElementById('result').innerHTML = "FAIL: Number of active tr ansitions is (" + current + ") but was expecting (0)";
19 testRunner.notifyDone(); 19 testRunner.notifyDone();
20 } 20 }
21 21
22 if (window.testRunner) { 22 if (window.testRunner) {
23 testRunner.dumpAsText(); 23 testRunner.dumpAsText();
24 testRunner.waitUntilDone(); 24 testRunner.waitUntilDone();
(...skipping 12 matching lines...) Expand all
37 setTimeout(checkRunning, 0); 37 setTimeout(checkRunning, 0);
38 }); 38 });
39 39
40 document.getElementById("foo").className="trans"; 40 document.getElementById("foo").className="trans";
41 </script> 41 </script>
42 42
43 <div id="result"> 43 <div id="result">
44 </div> 44 </div>
45 </body> 45 </body>
46 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698