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

Unified Diff: LayoutTests/editing/undo/undo-combined-delete-boundary-linux-behavior.html

Issue 43143003: Undo of delete/forward-delete of text should not select the deleted text on non-mac platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: LayoutTests/editing/undo/undo-combined-delete-boundary-linux-behavior.html
diff --git a/LayoutTests/editing/undo/undo-combined-delete-boundary.html b/LayoutTests/editing/undo/undo-combined-delete-boundary-linux-behavior.html
similarity index 64%
copy from LayoutTests/editing/undo/undo-combined-delete-boundary.html
copy to LayoutTests/editing/undo/undo-combined-delete-boundary-linux-behavior.html
index 1f48f1ef11832bdabe0337538125c681be0239cc..8e249a5b325e8dcf43bcc596574277aa6200dcb9 100644
--- a/LayoutTests/editing/undo/undo-combined-delete-boundary.html
+++ b/LayoutTests/editing/undo/undo-combined-delete-boundary-linux-behavior.html
@@ -1,11 +1,11 @@
-<html>
+<html>
<head>
<style>
-.editing {
- border: 2px solid red;
- padding: 12px;
- font-size: 24px;
+.editing {
+ border: 2px solid red;
+ padding: 12px;
+ font-size: 24px;
}
</style>
<script src="../editing.js" language="JavaScript" type="text/JavaScript" ></script>
@@ -26,15 +26,15 @@ function editingTest() {
</script>
-</head>
+</head>
<body>
<div contenteditable id="root" class="editing">
-<span id="test">This wo<b>rd </b>should be selected, since the test deleted it a character at a time and then did an undo.</span>
+<span id="test">This wo<b>rd </b>should not be selected, and the caret should be after 'o' in 'word' since the test began deleting operation starting from 'o' and then did an undo.</span>
</div>
<script>
if (window.internals)
- internals.settings.setEditingBehavior("mac");
+ internals.settings.setEditingBehavior("unix");
runEditingTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698