Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE HTML> | |
|
yosin_UTC9
2016/10/06 05:36:52
I think verifying selection boundary points is eno
| |
| 2 This test passes if, below, the first three lines are selected and a little of t he fourth.<br><br> | |
| 3 <font id='font' color="blue"> | |
| 4 AAAAAAAAAA | |
| 5 <div>BLOCKBLOCKBLOCK</div> | |
| 6 <p id='firstP'>BBBBBBBBBB</p> | |
| 7 <p id='secondP'>CCCCCCCCCC</p> | |
| 8 </font> | |
| 9 <script> | |
| 10 if (window.testRunner && window.eventSender && window.internals) { | |
| 11 // Win does not support 'moveCaretToBoundary' editing behavior. | |
| 12 internals.settings.setEditingBehavior('win'); | |
| 13 | |
| 14 var topLeft = {x: font.offsetLeft, y: font.offsetTop}; | |
| 15 var selectionOnSecondP = {x: (secondP.offsetLeft + 50), y: (secondP.offsetTo p + 5)}; | |
| 16 eventSender.mouseMoveTo(topLeft.x, topLeft.y); | |
| 17 eventSender.mouseDown(); | |
| 18 eventSender.mouseMoveTo(selectionOnSecondP.x, selectionOnSecondP.y); | |
| 19 eventSender.mouseUp(); | |
| 20 } | |
| 21 </script> | |
| OLD | NEW |