blob: b117236202d89dc6bf7cee0fb77de8b1cccea661 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
<defs>
<rect id="r1" width="100" height="100" fill="green"/>
</defs>
<use xlink:href="#r1" x="50" id="use1" onclick="reset()"/>
<script>
function runTest() {
if (window.testRunner)
testRunner.waitUntilDone();
eventSender.mouseMoveTo(100, 50);
eventSender.mouseDown();
eventSender.mouseUp();
}
function reset() {
var u = document.querySelector('#use1');
u.setAttribute('x', 0);
u.setAttribute('y', 0);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</svg>