blob: 946e7f7fc5addd3120aa7cfb8021564bf7778950 [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 < 2; i++)
moveSelectionForwardByCharacterCommand();
for (i = 0; i < 4; i++)
extendSelectionForwardByCharacterCommand();
deleteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root" class="editing">
<div id="test"><b>one</b></div><div><i>two</i></div>
<div><b>three</b><i>four</i></div>
<script>
runEditingTest();
</script>
</body>
</html>