| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <link rel="stylesheet" href="../editingStyle.css"> | |
| 5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
| 6 | |
| 7 <script> | |
| 8 | |
| 9 function editingTest() { | |
| 10 moveSelectionForwardByLineCommand(); | |
| 11 moveSelectionForwardByLineCommand(); | |
| 12 moveSelectionForwardByLineCommand(); | |
| 13 moveSelectionForwardByLineCommand(); | |
| 14 typeCharacterCommand(); | |
| 15 } | |
| 16 | |
| 17 </script> | |
| 18 | |
| 19 <title>Editing Test</title> | |
| 20 </head> | |
| 21 <body> | |
| 22 | |
| 23 <p>This tests the visual position at the end of an editable block.</p> | |
| 24 <p>When the document ended with a <br>, there were visual positions at bot
h [br, 0] and [br, 1]. This would produce inconsistent behavior when editing at
the end of a document.</p> | |
| 25 | |
| 26 <div contenteditable id="test" class="editing"> | |
| 27 <div>paragraph one</div> | |
| 28 <div>paragraph two</div> | |
| 29 <br></div> | |
| 30 | |
| 31 <script>runEditingTest();</script> | |
| 32 | |
| 33 </body></html> | |
| OLD | NEW |