ggaren | 3428b38 | 2006-11-03 16:51:39 +0000 | [diff] [blame] | 1 | <script> |
rniwa@webkit.org | 14f6b5b | 2012-06-13 08:51:53 +0000 | [diff] [blame] | 2 | if (window.testRunner) |
| 3 | testRunner.dumpEditingCallbacks(); |
ggaren | 3428b38 | 2006-11-03 16:51:39 +0000 | [diff] [blame] | 4 | </script> |
justing | 0e8af8d | 2006-11-02 03:52:33 +0000 | [diff] [blame] | 5 | <p>This tests paragraphBoundary selection navigation. The caret should be at the end of the paragraph below, just after the select box.</p> |
| 6 | <div id="div" contenteditable="true"><select><option>1</option></select></div> |
| 7 | |
| 8 | <script> |
| 9 | var sel = window.getSelection(); |
| 10 | var div = document.getElementById("div"); |
| 11 | |
| 12 | sel.setPosition(div, 0); |
| 13 | sel.modify("move", "forward", "paragraphBoundary"); |
rniwa@webkit.org | 14f6b5b | 2012-06-13 08:51:53 +0000 | [diff] [blame] | 14 | </script> |