blob: f45eb97abc0a1ba9eea1d7c253d0529cd53cd51d [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests paragraphBoundary selection navigation. The caret should be at the end of the paragraph below, just after the select box.</p>
<div id="div" contenteditable="true"><select><option>1</option></select></div>
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
sel.collapse(div, 0);
sel.modify("move", "forward", "paragraphBoundary");
</script>