Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / unrooted-selection-start-crash.html
blob416c26957c3220b017674a8734eb1046a4b1fab3
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
6 onload = function() {
7 var elem = document.getElementById("test");
8 // This will select from before <img> to after <br>.
9 window.getSelection().setBaseAndExtent(elem, 0, elem, 4);
10 document.execCommand('JustifyCenter', false, null);
12 </script>
13 Should not crash when selection start is unrooted (caused by reattachment of render objects).
14 <span id="test" contenteditable="true">
15 <b><img></b>
16 <br>
17 </span>