Index: LayoutTests/svg/dom/move-animating-svg-to-other-frame.html |
diff --git a/LayoutTests/svg/dom/move-animating-svg-to-other-frame.html b/LayoutTests/svg/dom/move-animating-svg-to-other-frame.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..966d8bb029beb5c78cab4b5be61286addafa7150 |
--- /dev/null |
+++ b/LayoutTests/svg/dom/move-animating-svg-to-other-frame.html |
@@ -0,0 +1,21 @@ |
+<script src="../../resources/js-test.js"></script> |
+<script> |
+jsTestIsAsync = true; |
+description("Moving animating svg document to other iframe should not crash."); |
+ |
+var otherSVG = null; // read from resources/import-other-svg.svg |
+function loadedSVGToBeMoved() |
+{ |
+ debug("loaded SVG to be moved"); |
+ |
+ var source = document.getElementById("source"); |
+ otherSVG = source.contentDocument.documentElement; |
+ |
+ var target = document.getElementById("target"); |
+ target.src = "resources/import-other-svg.svg"; |
+ target.onload = finishJSTest; |
+} |
+</script> |
+<iframe id="source" src="resources/svg-with-animate.svg" onload="loadedSVGToBeMoved()"></iframe> |
+<iframe id="target"></iframe> |
+<p>Test pass if no crash.</p> |