Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / extend-by-line-anonymous-content-crash.html
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();
12
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>