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

Side by Side Diff: LayoutTests/editing/inserting/break-out-of-nested-lists.html

Issue 104783005: Fix for an issue while breaking out of an empty list item in case of nested lists (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resubmitting as base file was missing 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
« no previous file with comments | « no previous file | LayoutTests/editing/inserting/break-out-of-nested-lists-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE>
2 <html>
3 <body>
4 <p id="description">Tests breaking out of empty list item in case of nested list s.</p>
5 <div contenteditable>
6 <ol>
7 <li>one</li>
8 <ul>
9 <li id="li">1</li>
10 <li>2</li>
11 </ul>
12 <li>two</li>
13 </ol>
14 </div>
15 <script src="../../resources/dump-as-markup.js"></script>
16 <script>
17 var li = document.getElementById("li");
18 var selection = window.getSelection();
19 selection.collapse(li, li.childNodes[0].length);
20 document.execCommand('InsertText', false, '\n'); //Split the inner list into two
21 document.execCommand('InsertText', false, '\n'); //Break out of the first inner list
22 document.execCommand('InsertText', false, '\n'); //Break out of the outer list
23 document.execCommand('InsertText', false, 'foo');
24 Markup.description(document.getElementById('description').textContent);
25 Markup.dump(document.querySelector('div'));
26 </script>
27 </body>
28 </html>
29
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/inserting/break-out-of-nested-lists-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698