Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / 4932260-2.html
1 <p>This tests for a bug where images would act as word boundaries.</p>
2 <div id="div" contenteditable="true">The<img src="../resources/abe.png">caret should be just after the second word in this sentence.</div>
3
4 <script>
5 if (window.testRunner)
6     window.testRunner.dumpEditingCallbacks();
7 if (window.internals)
8     internals.settings.setEditingBehavior('mac');
9 var sel = window.getSelection();
10 var div = document.getElementById("div");
11 sel.setPosition(div, 0);
12 sel.modify("move", "forward", "word");
13 sel.modify("move", "forward", "word");
14 </script>