Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/continuations-margin-without-move-caret-to-boundary.html

Issue 2398583002: Do not de-select text across continuations (Closed)
Patch Set: Add tests for different editing behaviors Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 This test passes if, below, the first two lines are selected and a little of the third.<br><br>
3 <font id='font' color="blue">
4 AAAAAAAAAA
5 <p id='firstP'>BBBBBBBBBB</p>
6 <p id='secondP'>CCCCCCCCCC</p>
7 </font>
8 <script>
9 if (window.testRunner && window.eventSender && window.internals) {
10 // Win does not support 'moveCaretToBoundary' editing behavior.
11 internals.settings.setEditingBehavior('win');
12
13 var topLeft = {x: font.offsetLeft, y: font.offsetTop};
14 var betweenFirstAndSecondP = {x: (secondP.offsetLeft + 50), y: (secondP.offs etTop - 5)};
15 eventSender.mouseMoveTo(topLeft.x, topLeft.y);
16 eventSender.mouseDown();
17 eventSender.mouseMoveTo(betweenFirstAndSecondP.x, betweenFirstAndSecondP.y);
18 eventSender.mouseUp();
19 }
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698