blob: d6bd64eb84e43c874296a3a16737c1bd4c92c70d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.editing {
font-size: 24px;
width: 600px;
}
</style>
<title>Editing Test</title>
</head>
<body contenteditable id="root">
<div id="test" class="editing">one two three</div><div>four five six</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
if (!window.testRunner)
document.write("(cannot run interactively)");
else {
testRunner.dumpEditingCallbacks();
getSelection().setPosition(document.getElementById('test'), 0);
// test for 4570218 by using double deleteToEndOfParagraph
testRunner.execCommand("DeleteToEndOfParagraph");
testRunner.execCommand("DeleteToEndOfParagraph");
Markup.dump('test');
}
</script>
</body>
</html>