blob: 09866e676e7b0cd623d354fc9d4ae4bd5270a20d [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 < 50; i++) {
moveSelectionForwardByCharacterCommand();
}
for (i = 0; i < 15; i++) {
deleteCommand();
}
}
</script>
<title>Editing Test</title>
</head>
<body>
<!-- body not contenteditable. treat these two divs like separate widgets.
arrowing from one to the other is prevented. -->
<div contenteditable id="root" class="editing">
<span id="test">We hold these truths to be self-evident,</span>
</div>
<div contenteditable class="editing">
that all men are created equal, ...
</div>
<script>
runEditingTest();
</script>
</body>
</html>