OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 div { | 4 div { |
5 -webkit-transition: background-color .15s linear; | 5 -webkit-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.getAnimationPlayers().length; | 14 var current = document.timeline.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 Loading... |
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> |
OLD | NEW |