OLD | NEW |
(Empty) | |
| 1 <svg version="1.1" xmlns="http://www.w3.org/2000/svg" onload="loaded()"> |
| 2 <!-- Test whether SMILElement animation self dependencies handled correctly.
--> |
| 3 <rect id="rectID" width="100" height="100" fill="green"> |
| 4 <animate id="selfID" attributeName="x" begin="0s; selfID.end" dur="0.02s
" from="0" to="400"/> |
| 5 </rect> |
| 6 <text id="label" y="150"/> |
| 7 <script> |
| 8 if (window.testRunner) { |
| 9 testRunner.dumpAsText(); |
| 10 testRunner.waitUntilDone(); |
| 11 } |
| 12 |
| 13 function displayMessage() { |
| 14 document.getElementById("label").textContent = "SMILElement animatio
n time self-dependency is" + |
| 15 ((document.getElementById("rectID").x.animVal.value > 0) ? " " :
" not ") + "handled."; |
| 16 } |
| 17 |
| 18 function loaded() { |
| 19 setTimeout('displayMessage()', 30); |
| 20 if (window.testRunner) { |
| 21 setTimeout('testRunner.notifyDone()', 40); |
| 22 } |
| 23 } |
| 24 </script> |
| 25 </svg> |
OLD | NEW |