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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/continuations-margin-across-block-2-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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/editing/selection/continuations-margin-across-block-2-without-move-caret-to-boundary.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/continuations-margin-across-block-2-without-move-caret-to-boundary.html b/third_party/WebKit/LayoutTests/editing/selection/continuations-margin-across-block-2-without-move-caret-to-boundary.html
new file mode 100644
index 0000000000000000000000000000000000000000..d786c8a3183737d99cea78d392f18917b2f1d1d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/selection/continuations-margin-across-block-2-without-move-caret-to-boundary.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+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
+<p id='firstP'>BBBBBBBBBB</p>
+<div>BLOCKBLOCKBLOCK</div>
+<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 betweenFirstAndSecondP = {x: (secondP.offsetLeft + 50), y: (secondP.offsetTop - 5)};
+ eventSender.mouseMoveTo(topLeft.x, topLeft.y);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(betweenFirstAndSecondP.x, betweenFirstAndSecondP.y);
+ eventSender.mouseUp();
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698