OLD | NEW |
| (Empty) |
1 <p>This tests to make sure that a drag-selecting through a -webkit-user-select:i
gnore region works. The selection should end somewhere inside the word 'World'
below.</p> | |
2 <div><span id="start">Hello</span> <span id="end" style="-webkit-user-select:ign
ore;">World</span></div> | |
3 | |
4 <script> | |
5 if (window.testRunner) { | |
6 start = document.getElementById("start"); | |
7 end = document.getElementById("end"); | |
8 | |
9 x = start.offsetParent.offsetLeft + start.offsetLeft - 5; | |
10 y = start.offsetParent.offsetTop + start.offsetTop + start.offsetHeight / 2; | |
11 | |
12 eventSender.mouseMoveTo(x, y); | |
13 eventSender.mouseDown(); | |
14 | |
15 eventSender.mouseMoveTo(x + 10, y); | |
16 eventSender.mouseMoveTo(x + 20, y); | |
17 eventSender.mouseMoveTo(x + 30, y); | |
18 | |
19 x = end.offsetParent.offsetLeft + end.offsetLeft + end.offsetWidth / 2; | |
20 y = end.offsetParent.offsetTop + end.offsetTop + end.offsetHeight / 2; | |
21 | |
22 eventSender.mouseMoveTo(x, y); | |
23 eventSender.mouseUp(); | |
24 } | |
25 </script> | |
OLD | NEW |