blob: 7818a4cebbb15db1a3021d8033a673fb3e44df95 [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 < 51; i++)
extendSelectionForwardByCharacterCommand();
justifyCenterCommand();
}
</script>
<title>Editing Test</title>
</head>
<body id="root" contenteditable>
<div style="test-align: right;" id="test" class="editing">
Here is some text. Should be <b>centered</b>.
</div>
<div id="test" class="editing">
Here is some text. Should be <b>centered</b>.
</div>
<script>
runEditingTest();
</script>
</body>
</html>