Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 4932260-3.html
blobd7930c3d8d677a851ac03220813022aafc639055
1 <p>This tests for a bug where images would act as word boundaries.</p>
2 <div id="div" contenteditable="true">The caret should be just before the second to last word in this<img src="../resources/abe.png">sentence.</div>
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpEditingCallbacks();
7 var sel = window.getSelection();
8 var div = document.getElementById("div");
9 sel.collapse(div, div.childNodes.length);
10 sel.modify("move", "backward", "word");
11 sel.modify("move", "backward", "word");
12 </script>