4 <link rel=stylesheet
href=
"../editingStyle.css" type=
"text/css">
5 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
9 function editingTest() {
10 moveSelectionForwardByCharacterCommand();
11 moveSelectionForwardByCharacterCommand();
13 var string
= "this is a test. ";
14 for (var i
= 0; i
< string
.length
; i
++)
15 typeCharacterCommand(string
[i
]);
24 <title>Redo Typing can add extra space characters
</title>
28 <p>This tests RebalanceWhitespace's ability to Undo.
</p>
29 <p>You should see
"( this is a test. )", minus the quotes.
</p>
33 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
34 <div id=
"test" class=
"editing">( )
</div>