blob: 3f28b9222816f2bfba3390d1d9bad8601d8eebf0 [file] [log] [blame]
<body contenteditable=true>
<p contenteditable=false>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=39946">https://bugs.webkit.org/show_bug.cgi?id=39946</a>
another case of infinite recursion in Position::getInlineBoxAndOffset(). This test passes if it does not crash.</p>
<div id="start">start dragging here and drag right<div>
<div style="-webkit-user-modify: read-only; display:inline-block;">
<div style="display:none;">some text</div>
<div style="width: 550px;">
spacer text
</div>
</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var selection = getSelection();
var start = document.getElementById("start");
selection.setBaseAndExtent(start, 1, start, 1);
selection.modify("move", "forward", "line");
selection.modify("move", "backward", "character");
</script>
</body>