blob: ea8886b29b737da859521180e108eb4a784a99ea [file] [log] [blame]
<html>
<head>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
<script>
function editingTest() {
for (i = 0; i < 3; i++)
execMoveSelectionForwardByCharacterCommand();
execExtendSelectionForwardByLineCommand();
deleteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable='true'>
<div id="root" class="editing">
<div id="test"><b>one</b></div><div><i>two</i></div>
<div><b>three</b></div><div><i>four</i></div>
</div>
<script>
runEditingTest();
</script>
</body>
</html>