<html>
<body onload="test()"></body>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function test()
    {
        document.open();
        document.designMode = "on";
        var selection = window.getSelection();
        selection.addRange(document.createRange());
        document.execCommand("Delete");
        document.close();
        document.body.appendChild(document.createTextNode('Deleting an empty selection should have no effect.'));
    }
</script>
</html>
