blob: 49348fc4d5fc716e3e78545233cc4168c8ac6180 [file] [log] [blame]
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
.cell {
padding: 12px;
font-size: 24px;
height: 48px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 6; i++)
moveSelectionForwardByWordCommand();
extendSelectionBackwardByWordCommand();
}
</script>
<title>Editing Test</title>
</head>
<body>
<div contenteditable id="root" class="editing">
<div id="test">foo</div>bar
</div>
<!--
Specifically checks test case in bug:
<rdar://problem/3917929> REGRESSION (Mail): Command-left-arrow leaves insertion point too high after specific steps
-->
<script>
runEditingTest();
</script>
</body>
</html>