Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / extend-by-line-anonymous-content-crash.html
blob2cf862b983fc228e56b681e424e5421a9fe79241
1 <style>
2 #b:before { content: "bar"; }
3 </style>
4 <p>
5 Test for <a href="rdar://problem/6081309">rdar://problem/6081309</a>, a crash when moving or extending the selection with line granularity.
6 </p>
7 <div id="target">foo</div>
8 <div id="b">baz</div>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 var sel = getSelection();
14 var start = document.getElementById("target").firstChild;
15 sel.setBaseAndExtent(start, 0, start, 1);
16 sel.modify("extend", "forward", "line");
17 </script>