blob: 99122ff9c6c9372f972ee277dbc4eb9b08e0973b [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 4; i++)
moveSelectionForwardByCharacterCommand();
deleteCommand();
for (i = 0; i < 4; i++)
moveSelectionForwardByCharacterCommand();
deleteCommand();
for (i = 0; i < 6; i++)
moveSelectionForwardByCharacterCommand();
deleteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div contenteditable id="root" class="editing">
<div id="test">
One
<div>Two<br><div>Three<br></div></div>
Four
</div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>