blob: b34004edd474d34af6f561e836dc4f1cbf00a349 [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: solid red 50px;
font-size: 24px;
line-height: 48px;
padding: 24px;
margin: 64px;
width: 600px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
var elem = document.getElementById("test-1");
var selection = window.getSelection();
selection.setPosition(elem.firstChild, 0);
for (var i = 0; i < 4; i++)
moveSelectionForwardByCharacterCommand();
deleteCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div contenteditable id="root" class="editing">
<span id="test-1">foo</span> baz
</div>
<script>
runEditingTest();
</script>
</body>
</html>