| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <link rel=stylesheet href="../editingStyle.css" type="text/css"> | |
| 5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
| 6 | |
| 7 <script> | |
| 8 | |
| 9 function editingTest() { | |
| 10 moveSelectionForwardByCharacterCommand(); | |
| 11 moveSelectionForwardByCharacterCommand(); | |
| 12 | |
| 13 var string = "this is a test. "; | |
| 14 for (var i = 0; i < string.length; i++) | |
| 15 typeCharacterCommand(string[i]); | |
| 16 undoCommand(); | |
| 17 redoCommand(); | |
| 18 undoCommand(); | |
| 19 redoCommand(); | |
| 20 } | |
| 21 | |
| 22 </script> | |
| 23 | |
| 24 <title>Redo Typing can add extra space characters</title> | |
| 25 </head> | |
| 26 <body> | |
| 27 | |
| 28 <p>This tests RebalanceWhitespace's ability to Undo.</p> | |
| 29 <p>You should see "( this is a test. )", minus the quotes.</p> | |
| 30 | |
| 31 <hr> | |
| 32 | |
| 33 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: s
pace; -khtml-line-break: after-white-space;"> | |
| 34 <div id="test" class="editing">( )</div> | |
| 35 </div> | |
| 36 | |
| 37 <script> | |
| 38 runEditingTest(); | |
| 39 </script> | |
| 40 | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |