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

Unified Diff: LayoutTests/editing/deleting/merge-list-items-in-same-list.html

Issue 242733004: canMergeLists() should make sure that the list items do not belong to the same list (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
Index: LayoutTests/editing/deleting/merge-list-items-in-same-list.html
diff --git a/LayoutTests/editing/deleting/merge-list-items-in-same-list.html b/LayoutTests/editing/deleting/merge-list-items-in-same-list.html
new file mode 100644
index 0000000000000000000000000000000000000000..6006dc4aba0547365ad4d32364f1f291b0b2ad35
--- /dev/null
+++ b/LayoutTests/editing/deleting/merge-list-items-in-same-list.html
@@ -0,0 +1,17 @@
+<!DOCTYPE>
yosin_UTC9 2014/04/22 04:42:52 nit: Please use "<!DOCTYPE html>"
+<html>
+<body>
+<div>
+<ul contenteditable><li>one</li><li></li><li id="li">three</li></ul>
+</div>
+<script src="../../resources/dump-as-markup.js"></script>
+<script>
+var li = document.getElementById("li");
yosin_UTC9 2014/04/22 04:42:52 nit: Please use single quote in JavaScript. https:
ojan 2014/04/30 01:59:59 For future reference, we don't use google style in
+var selection = window.getSelection();
+selection.collapse(li, 0);
+document.execCommand("Delete");
+Markup.dump(document.querySelector('div'));
+</script>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698