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

Unified Diff: LayoutTests/editing/execCommand/indent-list-item-with-children.html

Issue 67063005: Fixing indent/outdent for <li> elements containing children spanning across (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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/execCommand/indent-list-item-with-children.html
diff --git a/LayoutTests/editing/execCommand/indent-list-item-with-children.html b/LayoutTests/editing/execCommand/indent-list-item-with-children.html
new file mode 100644
index 0000000000000000000000000000000000000000..8c7b60d584da09c369ab862bb9f05a6079b8397f
--- /dev/null
+++ b/LayoutTests/editing/execCommand/indent-list-item-with-children.html
@@ -0,0 +1,35 @@
+<html>
yosin_UTC9 2013/11/20 05:01:49 nit: Please add <!DOCTYPE html> It seems many real
arpitab_ 2013/11/20 13:07:52 Done.
+<head>
+<script src="../../resources/dump-as-markup.js"></script>
+</head>
+<body>
+<div contentEditable id="first">
+ <ol>
+ <li id="listItemBlock">before<div>div1</div><div>div2</div><div>div3</div>after</li>
+ <li id="listItemInline">before<span>span1</span><span>span2</span><span>span3</span>after</li>
+ <li id="listItemTable">before<table border="1" cellpadding="2" cellspacing="2"><tr><td><br/></td></tr></table>after</li>
+ </ol>
+</div>
+<div contentEditable id="second">
+<ol>
+<pre><ul><li id="listItemPre">hello
+world</li>
+</ul></pre>
+</ol>
+</div>
+<script>
+Markup.waitUntilDone();
+
+function indentListItem(item) {
+ window.getSelection().collapse(item, 0);
+ document.execCommand("indent");
+}
+
+Array.prototype.slice.call(document.getElementsByTagName('li')).forEach(indentListItem);
+Markup.dump(document.getElementById('first'), "Indent With Children");
+Markup.dump(document.getElementById('second'), "Indent With Pre");
+
+Markup.notifyDone();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698