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

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

Issue 181103004: Fixing crash when executing ApplyStyle command. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing review comments Created 6 years, 9 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 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="test" contenteditable>
6 <p id="startSelection">A</p>
7 <p>B</p>
8 <p id="endSelection">C</p>
9 <p>This should not be selected.</p>
10 </div>
11 <script>
12 var selection = window.getSelection();
13 var range = document.createRange();
14 range.setStart(document.getElementById('startSelection'), 0);
15 range.setEnd(document.getElementById('endSelection'), 1);
16 selection.addRange(range);
17 document.execCommand('InsertOrderedList');
18 Markup.description("This tests verifies that the selection is properly reset aft er executing the command.");
19 Markup.dump('test');
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698