blob: 4d154e9f5122974f3372f0b6e340ca2558d17724 [file] [log] [blame]
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=151300">bug 151300</a>:
Backwards delete by word incorrectly appends deleted text to kill ring, should be prepend.</p>
<div contenteditable id=ce>
one two three
</div>
<div>
Expected result:
one two three
</div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
document.getElementById("ce").focus();
testRunner.execCommand("MoveWordForward");
testRunner.execCommand("MoveWordForward");
testRunner.execCommand("DeleteWordBackward");
testRunner.execCommand("DeleteWordBackward");
testRunner.execCommand("DeleteWordForward");
testRunner.execCommand("Yank");
} else
document.write("This test only runs in automatic mode");
</script>