blob: 458b70cc94960874352ca575062579881784e6fb [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<script>
<![CDATA[
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
gc = function(){window.GCController.collect()};
} else if (!window.gc)
gc = function(){};
window.onload = function(){
if (location.hash != "#2") {
if (location.hash)
location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toString();
else
location.hash = "#1";
var ir = document.getElementById("use1").instanceRoot;
ir.correspondingUseElement.parentElement.removeChild(ir.correspondingUseElement);
gc();
ir.correspondingUseElement;
setTimeout(function(){location.reload()},0);
} else {
document.getElementById("t1").appendChild(document.createTextNode("PASS: Successfully removed use element."));
if (window.testRunner)
testRunner.notifyDone();
}
}
//]]>
</script>
<g id="g1" />
<use xlink:href="#g1" id="use1" />
<text x="20" y="20" fill="green" id="t1"></text>
</svg>