| <html> |
| <head> |
| <style> |
| span { |
| background: blue; |
| color: white; |
| opacity: .666; |
| -webkit-transition: opacity, .1s, .1s ease-out; |
| } |
| </style> |
| <script> |
| var started = false; |
| function checkRunning() |
| { |
| if (!started) { |
| if (internals.numberOfActiveAnimations() > 0) |
| started = true; |
| } else if (internals.numberOfActiveAnimations() == 0) { |
| document.getElementById('result').innerHTML = "Number of active animations before transition is (0) as expected"; |
| testRunner.notifyDone(); |
| return; |
| } |
| // Loop until we see the expected state transitions, if we don't see them the test will time out. |
| requestAnimationFrame(checkRunning); |
| } |
| |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| onload = function() { |
| document.getElementById("doomSpan").style.opacity=1; |
| // Force a layout so that the animation is running when checkRunning is first called. |
| document.body.offsetHeight; |
| if (window.testRunner) |
| checkRunning(); |
| } |
| </script> |
| </head> |
| <body> |
| |
| <span id="doomSpan">If you can see this then we didn't hang!!!</span> |
| |
| <div id="result"> |
| </div> |
| </body> |
| </html> |