Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script> | |
| 3 if (window.testRunner) | |
| 4 testRunner.waitUntilDone(); | |
| 5 | |
| 6 function animationEnded() { | |
| 7 var anim = document.getElementById('anim'); | |
| 8 anim.beginElement(); | |
| 9 testRunner.displayAsyncThen(function() { | |
|
fs
2015/05/05 14:39:20
Always good to be able to run the test without the
| |
| 10 testRunner.notifyDone(); | |
|
fs
2015/05/05 14:39:20
This still feels like it will be flaky - beginElem
| |
| 11 }); | |
| 12 } | |
| 13 </script> | |
| 14 <svg> | |
| 15 <rect id="rect" width="100px" height="100px" fill="red"> | |
| 16 <animate id="anim" | |
| 17 begin="0s" | |
| 18 dur="0.2s" | |
|
fs
2015/05/05 14:39:19
Now this test takes 200+ms...
| |
| 19 attributeName="fill" | |
| 20 from="red" to="green" | |
| 21 fill="freeze" | |
| 22 restart="never" | |
| 23 onend="animationEnded()"/> | |
| 24 </rect> | |
| 25 </svg> | |
| OLD | NEW |