Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-move-to-offset.svg
blobb117236202d89dc6bf7cee0fb77de8b1cccea661
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
2 <defs>
3 <rect id="r1" width="100" height="100" fill="green"/>
4 </defs>
5 <use xlink:href="#r1" x="50" id="use1" onclick="reset()"/>
6 <script>
7 function runTest() {
8 if (window.testRunner)
9 testRunner.waitUntilDone();
10 eventSender.mouseMoveTo(100, 50);
11 eventSender.mouseDown();
12 eventSender.mouseUp();
14 function reset() {
15 var u = document.querySelector('#use1');
16 u.setAttribute('x', 0);
17 u.setAttribute('y', 0);
18 if (window.testRunner)
19 testRunner.notifyDone();
21 </script>
22 </svg>