summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/deleting/merge-into-empty-block-2.html
blob: 3517b2987141ee7bc3ac523dd729114cb4c77352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<p id="description">When a user puts the caret at the very beginning a list and hits delete into an empty line, the list should just move up.</p>
<div contenteditable="true"><div><br></div><ul><li><span id="test">foo</span></li></ul></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
if (window.testRunner)
     testRunner.dumpEditingCallbacks();

var e = document.getElementById("test");
window.getSelection().collapse(e, 0);

document.execCommand("Delete");

Markup.description(document.getElementById('description').textContent);
Markup.dump(document.querySelector('div'));
</script>