Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / leave-requested-block.html
blobd2e874d51d57fc86f30786a7cb5dc7009f94ee12
1 <html>
2 <head>
4 <link rel=stylesheet href="../editingStyle.css" type="text/css">
5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
7 <script>
9 function editingTest() {
10 for (var i = 0; i < 30; i++) {
11 extendSelectionForwardByLineCommand();
15 </script>
17 <title>Editing Test</title>
18 </head>
20 <body>
21 <p>Test case for fix for <a href="https://bugs.webkit.org/show_bug.cgi?id=5354">http://bugzilla.opendarwin.org/show_bug.cgi?id=5354</a>.</p>
22 <p>Changes were made to VisiblePosition's so that init() will not leave the block containing the requested position unless there are no VisiblePositions in that block.<p>
24 <div class="editableblock" id="test" contenteditable="true">
25 <p>Select All while inside this editable block should create a selection that does not extend outside of this block.</p>
26 </div>
28 <p style="overflow: hidden;">This is a paragraph outside the editable block with overflow:hidden</p>
30 <script>
31 runEditingTest();
32 </script>
33 </body>
34 </html>