blob: 004dbf27aebb74b95830ca1738f987a75f43e45d [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 src="../../resources/dump-as-markup.js"></script>
<title>Editing Test</title>
</head>
<body>
<div contenteditable id="root" class="editing">
<span id="test">Empty list item</span>
<p>
<ol>
<li>I should be number 1.</li>
<li></li>
<li>I should be number 3.</li>
</ol>
</div>
<script>
function editingTest() {
moveSelectionForwardByLineCommand()
for (i = 0; i < 3; i++)
extendSelectionForwardByLineCommand();
copyCommand();
moveSelectionForwardByLineCommand();
pasteCommand();
Markup.dump('root');
}
runDumpAsTextEditingTest(true);
</script>
</body>
</html>