Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/editing/selection/continuations-across-block-with-move-caret-to-boundary.html |
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/continuations-across-block-with-move-caret-to-boundary.html b/third_party/WebKit/LayoutTests/editing/selection/continuations-across-block-with-move-caret-to-boundary.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5f1e83ef624d19dda1314deb6db80480148e1b67 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/editing/selection/continuations-across-block-with-move-caret-to-boundary.html |
| @@ -0,0 +1,21 @@ |
| +<!DOCTYPE HTML> |
|
yosin_UTC9
2016/10/06 05:36:52
I think verifying selection boundary points is eno
|
| +This test passes if, below, the first three lines are selected and a little of the fourth.<br><br> |
| +<font id='font' color="blue"> |
| +AAAAAAAAAA |
| +<div>BLOCKBLOCKBLOCK</div> |
| +<p id='firstP'>BBBBBBBBBB</p> |
| +<p id='secondP'>CCCCCCCCCC</p> |
| +</font> |
| +<script> |
| +if (window.testRunner && window.eventSender && window.internals) { |
| + // Win does not support 'moveCaretToBoundary' editing behavior. |
| + internals.settings.setEditingBehavior('win'); |
| + |
| + var topLeft = {x: font.offsetLeft, y: font.offsetTop}; |
| + var selectionOnSecondP = {x: (secondP.offsetLeft + 50), y: (secondP.offsetTop + 5)}; |
| + eventSender.mouseMoveTo(topLeft.x, topLeft.y); |
| + eventSender.mouseDown(); |
| + eventSender.mouseMoveTo(selectionOnSecondP.x, selectionOnSecondP.y); |
| + eventSender.mouseUp(); |
| +} |
| +</script> |