Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / selection / text-selection-drag.html
blob23c92b535316e0452ca536124885bc121febc6c1
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 body {
6 color: green;
7 font: 50px/1 Ahem;
9 </style>
10 <script>
11 function runTest() {
12 if (!window.testRunner)
13 return;
15 testRunner.dumpDragImage();
16 var selectMe = document.getElementById('selectMe');
17 window.getSelection().selectAllChildren(selectMe);
18 var x = selectMe.offsetLeft + selectMe.offsetWidth / 2;
19 var y = selectMe.offsetTop + selectMe.offsetHeight / 2;
20 eventSender.mouseMoveTo(x, y);
21 eventSender.mouseDown();
22 eventSender.leapForward(200);
23 eventSender.mouseMoveTo(x + 50, y + 50);
24 eventSender.mouseUp();
26 </script>
27 </head>
28 <body onload="runTest()">
29 <div id="selectMe">To run this test manually, select some text and drag it around. The text should not be drawn with halo outlines.</div>
30 </body>
31 </html>