OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <svg> |
| 3 <g id="g1"> |
| 4 <text id="text1"/> |
| 5 </g> |
| 6 <g id="g2"> |
| 7 <text id="text2"/> |
| 8 <animate values="100" href="#text2" attributeName="x" dur="4s"/> |
| 9 </g> |
| 10 </svg> |
| 11 <p>PASS if no crash</p> |
| 12 <script> |
| 13 if (window.testRunner) { |
| 14 testRunner.dumpAsText(); |
| 15 testRunner.waitUntilDone(); |
| 16 } |
| 17 var g1 = document.getElementById("g1"); |
| 18 var g2 = document.getElementById("g2"); |
| 19 var text1 = document.getElementById("text1"); |
| 20 |
| 21 window.onload = function() { |
| 22 requestAnimationFrame(function() { |
| 23 g1.remove(); |
| 24 text1.appendChild(document.querySelector("svg")); |
| 25 g1.appendChild(g2); |
| 26 if (window.testRunner) |
| 27 testRunner.notifyDone(); |
| 28 }); |
| 29 }; |
| 30 </script> |
OLD | NEW |