Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / 4932260-1.html
1 <p>This tests for a bug where images would act as sentence boundaries.</p>
2 <div id="div" contenteditable="true">The caret should be <img src="../resources/abe.png">at the beginning of this sentence.</div>
3
4 <script>
5 if (window.testRunner)
6     window.testRunner.dumpEditingCallbacks();
7 var sel = window.getSelection();
8 var div = document.getElementById("div");
9 sel.setPosition(div, 0);
10 sel.modify("move", "forward", "sentence");
11 sel.setPosition(div, div.childNodes.length);
12 sel.modify("move", "backward", "sentence");
13 </script>