<svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="load()">
<g id="g"/>
<script id="script">
<script xlink:href="../../resources/js-test.js"></script>
<![CDATA[
// This test relies on --enable-leak-detection to catch leaks
var g = document.getElementById("g");
function createAnimatedRect() {
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
rect.setAttribute("width", 10);
rect.setAttribute("height", 10);
var anim = document.createElementNS("http://www.w3.org/2000/svg", "animate");
anim.setAttribute("attributeType", "XML");
anim.setAttribute("attributeName", "x");
anim.setAttribute("from", "100");
anim.setAttribute("to", "0");
anim.setAttribute("begin", "0s");
anim.setAttribute("dur", "10.0s");
anim.setAttribute("repeatCount", 1);
rect.appendChild(anim);
return rect;
}
function load() {
for (var i = 0; i < 100; i++)
g.appendChild(createAnimatedRect());
}
]]>
</script>
</svg>