Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / selection-doubleclick.svg
blob5c4a9315d1d3930210ce07ce5ab83d2cb58ade0a
1 <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 160 120">
2 <text id="line1" x="14" y="10" font-family="Arial" font-size="10" fill="black">foo bar baz</text>
3 <text id="line2" x="14" y="20" font-family="Arial" font-size="10" fill="black">next line</text>
4 <script>
5 var line1 = document.getElementById("line1");
6 var center = document.rootElement.createSVGPoint();
7 var matrix = line1.getScreenCTM();
8 var bbox = line1.getBBox();
10 center.x = bbox.x + bbox.width/2;
11 center.y = bbox.y + bbox.height/2;
12 center = center.matrixTransform(matrix);
14 if (eventSender) {
15 eventSender.mouseMoveTo(center.x, center.y);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
18 eventSender.mouseDown();
19 eventSender.mouseUp();
22 if (window.testRunner)
23 window.testRunner.dumpSelectionRect();
24 </script>
25 </svg>