blob: 7f5b02c0be6342a7c941ad593bcfd739c45ff2c6 [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 < 6; i++)
moveSelectionForwardByCharacterCommand();
for (i = 0; i < 33; i++)
extendSelectionForwardByCharacterCommand();
copyCommand();
pasteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root">
<div id="test" class="editing">There is a tide in the affairs of men,</div>
<div class="editing">Which taken at the flood leads on to fortune.</div>
<div class="editing">Omitted, all the voyage of their life,</div>
<div class="editing">Is bound in shallows and in miseries.</div>
<script>
runEditingTest();
</script>
</body>
</html>