blob: 4236efeb7f1ca4b708926a46d6e64cb61a6df8be [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 moveNSpacesAndType(n) {
for (i = 0; i < n; i++) {
moveSelectionForwardByCharacterCommand();
}
for (i = 0; i < 3; i++) {
typeCharacterCommand();
}
}
function editingTest() {
typeCharacterCommand();
moveNSpacesAndType(1);
moveNSpacesAndType(1);
moveNSpacesAndType(1);
moveNSpacesAndType(1);
}
</script>
<title>Editing Test</title>
</head>
<body>
<div contenteditable id="root" class="editing">
<span id="test"><img src="../resources/abe.png"><img src="../resources/abe.png"> <img src="../resources/abe.png"></span>
</div>
<script>
runEditingTest();
</script>
</body>
</html>