Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / mixed-editability-11.html
1 <p>
2     Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=38445">https://bugs.webkit.org/show_bug.cgi?id=38445</a>
3     another case of <i><a href="rdar://problem/7552959">rdar://problem/7552959</a>
4     REGRESSION: Infinite recursion in Position::getInlineBoxAndOffset()</i>.
5 </p>
6 <div id="target" style="text-align: center; -webkit-user-modify: read-write"><span style="-webkit-user-modify: read-only"></span>editable<span style="-webkit-user-modify: read-only"></span></div>
7 <script>
8     if (window.testRunner)
9         testRunner.dumpAsText();
10
11     var selection = getSelection();
12     var target = document.getElementById("target");
13     selection.setBaseAndExtent(target, 3, target, 3);
14     selection.setBaseAndExtent(target, 0, target, 0);
15 </script>