Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 4983858.html
bloba82cce3e859702a1ce02cfb0231d0c742e8a566b
1 <body contenteditable="true"></body>
3 <script>
4 var sel = window.getSelection();
5 sel.collapse(document.body, 0);
6 document.execCommand("InsertText", false, "This tests for a bug where selecting a word would select the line break and word before it. Only the word in the paragraph below should be selected:");
7 document.execCommand("InsertParagraph");
8 document.execCommand("InsertText", false, "foo");
9 sel.modify("extend", "backward", "word");
10 </script>