| <html> |
| <head> |
| <script> |
| function editingTest() { |
| moveSelectionForwardByLineCommand(); |
| extendSelectionForwardByCharacterCommand(); |
| extendSelectionForwardByCharacterCommand(); |
| extendSelectionForwardByCharacterCommand(); |
| } |
| </script> |
| <script src=../editing.js language="JavaScript" type="text/JavaScript"></script> |
| </head> |
| |
| <body> |
| <p><b>Make sure that your window is small enough</b> so that 'don't select this line' and 'try to select just this line' appear on two different lines. The two phrases are actually in the same paragraph, there are just lots of spaces in between them.</p> |
| <p>This is a test for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6632">REGRESSION: Selection includes spaces that it shouldn't</a>. The test makes sure that a word that is right after a line wrap can be selected successfully.</p> |
| </p> |
| <div id="test" contenteditable style="margin: 1em; border: 1px solid black; word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> |
| don't select me <i>try to select just this text</i> |
| </div> |
| <script>runEditingTest()</script> |
| </body> |
| </html> |