| <html> |
| |
| <head> |
| <script src="../editing.js"></script> |
| <script> |
| function editingTest() { |
| extendSelectionForwardByLineCommand(); |
| deleteCommand(); |
| } |
| </script> |
| </head> |
| |
| <body> |
| |
| <p>This tests deletion of an empty line starting inside a <div> element, |
| but ending outside that element (just before a <br>). In this case, the |
| <div> has no content inside it, but a min-height style prevents it from |
| collapsing. If the deletion is successful, the result should have two lines, |
| and the insertion point should be on the second line, at the end of the editable area.</p> |
| |
| <div contenteditable> |
| <div>a</div><div id="test" style="min-height:50px"></div><br> |
| </div> |
| |
| </body> |
| |
| <script>runEditingTest()</script> |
| |
| </html> |