blob: 0d2913c18376094fc1360700fd4d8e07bade8576 [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 < 8; i++) {
moveSelectionForwardByCharacterCommand();
}
for (i = 0; i < 14; i++) {
extendSelectionForwardByCharacterCommand();
}
execBoldCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div contenteditable id="root" class="editing">
<span id="test">here is <i>some</i> text<br>here is some more text</span>
</div>
<script>
runEditingTest();
</script>
</body>
</html>