OLD | NEW |
(Empty) | |
| 1 <script src="../../resources/js-test.js"></script> |
| 2 <script> |
| 3 jsTestIsAsync = true; |
| 4 description("Moving animating svg document to other iframe should not crash."); |
| 5 |
| 6 var otherSVG = null; // read from resources/import-other-svg.svg |
| 7 function loadedSVGToBeMoved() |
| 8 { |
| 9 debug("loaded SVG to be moved"); |
| 10 |
| 11 var source = document.getElementById("source"); |
| 12 otherSVG = source.contentDocument.documentElement; |
| 13 |
| 14 var target = document.getElementById("target"); |
| 15 target.src = "resources/import-other-svg.svg"; |
| 16 target.onload = finishJSTest; |
| 17 } |
| 18 </script> |
| 19 <iframe id="source" src="resources/svg-with-animate.svg" onload="loadedSVGToBeMo
ved()"></iframe> |
| 20 <iframe id="target"></iframe> |
| 21 <p>Test pass if no crash.</p> |
OLD | NEW |