Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / image-before-linebreak.html
blob370ab74f9f663fe3ee06b822db1449ccfbd2d0e6
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>Only the line break after the image should be selected.</p>
6 <hr>
7 <div contenteditable="true" id="div"><img src="../resources/abe.png"><br>foo</div>
9 <script>
10 if (window.testRunner)
11 window.testRunner.dumpSelectionRect();
13 var e = document.getElementById("div");
14 var s = window.getSelection();
15 // Select the line break
16 s.setBaseAndExtent(e, 1, e, 2);
17 </script>