Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 4916541.html
blob7defb46e66ce3110917874fb92d5c087be92dbdf
1 <p>This tests selection preservation during an indent operation. The selection should start and end in the same parts of the words 'foo' and 'bar' before and after the indent operation.</p>
2 <div id="div" contenteditable="true"><span id="foo">foo</span><br><span id="bar">bar</span></div>
4 <script>
5 var foo = document.getElementById("foo").firstChild;
6 var bar = document.getElementById("bar").firstChild;
7 var sel = window.getSelection();
8 sel.setBaseAndExtent(foo, 1, bar, 2);
9 document.execCommand("Indent");
10 </script>