summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/remove-list-item-1.html
blob: 6fe652a4161585633ac841827a1d47a57f870348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script>
if (window.testRunner)
     testRunner.dumpEditingCallbacks();
</script>
<body>
<p>Outdenting a sublist should remove one level.</p>
<div id="div" contentEditable="true"><ul><ul><li>foo</li></ul></ul></div>

<script>
var div = document.getElementById("div");
var sel = window.getSelection();

sel.collapse(div, 0);
document.execCommand("Outdent");
</script>
</body>