blob: 98f3e8a0255b733bc7c2fb70a13a853ef88a7961 [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.layoutTestController)
document.write("(cannot run interactively)");
else {
layoutTestController.dumpEditingCallbacks();
getSelection().setPosition(document.getElementById('test'), 0);
// test for 4570218 by using double deleteToEndOfParagraph
layoutTestController.execCommand("DeleteToEndOfParagraph");
layoutTestController.execCommand("DeleteToEndOfParagraph");
Markup.dump('test');
}
</script>
</body>
</html>