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

Side by Side Diff: LayoutTests/editing/undo/undo-combined-delete-boundary.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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
9 }
10 </style>
11 <script src="../editing.js" language="JavaScript" type="text/JavaScript" ></scri pt>
12
13 <script>
14
15 function editingTest() {
16 moveSelectionForwardByWordCommand();
17 moveSelectionForwardByCharacterCommand();
18 moveSelectionForwardByCharacterCommand();
19 moveSelectionForwardByCharacterCommand();
20 deleteCommand();
21 deleteCommand();
22 forwardDeleteCommand();
23 forwardDeleteCommand();
24 undoCommand();
25 }
26
27 </script>
28
29 </head>
30 <body>
31 <div contenteditable id="root" class="editing">
32 <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>
33 </div>
34
35 <script>
36 if (window.internals)
37 internals.settings.setEditingBehavior("mac");
38 runEditingTest();
39 </script>
40
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698