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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/inserting/break-out-of-nested-lists.html
diff --git a/LayoutTests/editing/inserting/break-out-of-nested-lists.html b/LayoutTests/editing/inserting/break-out-of-nested-lists.html
new file mode 100644
index 0000000000000000000000000000000000000000..a630cca15d9a75ef8ae35c8980ae5948d2be07ad
--- /dev/null
+++ b/LayoutTests/editing/inserting/break-out-of-nested-lists.html
@@ -0,0 +1,29 @@
+<!DOCTYPE>
+<html>
+<body>
+<p id="description">Tests breaking out of empty list item in case of nested lists.</p>
+<div contenteditable>
+<ol>
+<li>one</li>
+<ul>
+<li id="li">1</li>
+<li>2</li>
+</ul>
+<li>two</li>
+</ol>
+</div>
+<script src="../../resources/dump-as-markup.js"></script>
+<script>
+var li = document.getElementById("li");
+var selection = window.getSelection();
+selection.collapse(li, li.childNodes[0].length);
+document.execCommand('InsertText', false, '\n'); //Split the inner list into two
+document.execCommand('InsertText', false, '\n'); //Break out of the first inner list
+document.execCommand('InsertText', false, '\n'); //Break out of the outer list
+document.execCommand('InsertText', false, 'foo');
+Markup.description(document.getElementById('description').textContent);
+Markup.dump(document.querySelector('div'));
+</script>
+</body>
+</html>
+
« 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