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

Side by Side Diff: LayoutTests/editing/execCommand/selection-after-insert-list.html

Issue 111463002: Ensure selection is reset after changing the list type of existing list items including the last. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Computing indexForEndOfSelection only once Created 7 years 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 <script src="../../resources/dump-as-markup.js"></script>
2 <div id="test" contenteditable>
3 <ul>
4 <li id="first">ABC</li>
5 <li id="second">DEF</li>
6 </ul>
7 </div>
8 <script>
9 var selection = window.getSelection();
10 var range = document.createRange();
11 range.setStart(document.getElementById('first').firstChild, 2);
12 range.setEnd(document.getElementById('second').firstChild, 3);
13 selection.addRange(range);
14 document.execCommand('InsertOrderedList', false, null);
15 Markup.description("This tests verifies that the selection is properly reset aft er executing the command.");
16 Markup.dump('test');
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698