Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / mixed-editability-12.html
blob3f28b9222816f2bfba3390d1d9bad8601d8eebf0
1 <body contenteditable=true>
2 <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>
3 another case of infinite recursion in Position::getInlineBoxAndOffset(). This test passes if it does not crash.</p>
4 <div id="start">start dragging here and drag right<div>
5 <div style="-webkit-user-modify: read-only; display:inline-block;">
6 <div style="display:none;">some text</div>
7 <div style="width: 550px;">
8 spacer text
9 </div>
10 </div>
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 var selection = getSelection();
16 var start = document.getElementById("start");
17 selection.setBaseAndExtent(start, 1, start, 1);
18 selection.modify("move", "forward", "line");
19 selection.modify("move", "backward", "character");
20 </script>
21 </body>