Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / wrapped-line-caret-1.html
blobdb7ed15920d55d8e652e7eccf1fbfd0840bf3179
1 <span>This test passes if the caret is at the start of the second line.</span>
3 <div id="edit" contentEditable="true" style="width: 350px; height: 100px; border: 1px solid blue;">a&nbsp;</div>
4 <script>
5 var edit = document.getElementById("edit");
6 edit.appendChild(document.createTextNode("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
7 window.getSelection().collapse(edit.firstChild, 2);
8 </script>