<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=73888">bug 73888</a>:
Kill ring is not cleared when selection changes.</p>

<div contenteditable id=ce>
one
<div>two</div>
<div>three</div>
<div>four</div>
<div>five</div>
<div><br></div>
</div>

<div>
Expected result:
<div>one</div>
<div>three</div>
<div>five</div>
<div>four</div>
<div><br></div>
</div>

<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    document.getElementById("ce").focus();
    testRunner.execCommand("moveDown");
    testRunner.execCommand("deleteToEndOfParagraph");
    testRunner.execCommand("deleteToEndOfParagraph");
    testRunner.execCommand("moveDown");
    testRunner.execCommand("deleteToEndOfParagraph");
    testRunner.execCommand("deleteToEndOfParagraph");
    testRunner.execCommand("moveDown");
    testRunner.execCommand("yank");
} else
    document.write("This test only runs in automatic mode");
</script>
