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

Unified Diff: LayoutTests/editing/deleting/merge-lists.html

Issue 112633003: Handle special case of merging lists in mergeParagraphs() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Attempt to address the review comment Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/merge-lists-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/deleting/merge-lists.html
diff --git a/LayoutTests/editing/deleting/merge-lists.html b/LayoutTests/editing/deleting/merge-lists.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b3983d92680355e0e640449faa8fe4bd7f9bfb3
--- /dev/null
+++ b/LayoutTests/editing/deleting/merge-lists.html
@@ -0,0 +1,20 @@
+<!DOCTYPE>
+<html>
+<body>
+<p id="description">Placing cursor at the end of first list and executing forward delete should merge the second list with the first one.</p>
+<div contenteditable>
+<ol><li>one</li><li>two</li><li id="li">three</li></ol>
+<ol><li>four</li><li>five</li><li>six</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("forwardDelete");
+Markup.description(document.getElementById('description').textContent);
+Markup.dump(document.querySelector('div'));
+</script>
+</body>
+</html>
+
« no previous file with comments | « no previous file | LayoutTests/editing/deleting/merge-lists-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698