blob: e44bd21d13b84b29b126517517e3b0b9e3ac73dd [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
<script src="../editing.js" language="JavaScript" type="text/JavaScript" />
<script>
function editingTest() {
for (i = 0; i != 4; i++)
moveSelectionForwardByCharacterCommand();
for (i = 0; i != 3; i++)
extendSelectionForwardByCharacterCommand();
copyCommand();
moveSelectionForwardByCharacterCommand();
pasteCommand();
}
</script>
</head>
<body>
<div contenteditable="" id="root" class="editing">
<span id="test">foo bar baz</span>
</div>
<script>
runEditingTest();
</script>
</body>
</html>