| <script src="../editing.js"></script> |
| <script src="../../resources/dump-as-markup.js"></script> |
| <title>Editing Test</title> |
| <body contenteditable id="root"> |
| <div class="editing" id="test">There is a tide in the affairs of men.</div> |
| window.getSelection().setPosition(document.getElementById('test'), 0); |
| moveSelectionForwardByCharacterCommand(); |
| extendSelectionForwardByCharacterCommand(); |
| moveSelectionForwardByCharacterCommand(); |
| insertLineBreakCommand(); |
| insertLineBreakCommand(); |
| Markup.description('There was a bug when pasting at the end of the block. The content was inserted at the start\n' |
| + 'the block instead of the end. This tests the insert-at-end case.'); |
| var script = document.getElementsByTagName('script')[2]; |
| script.parentNode.removeChild(script); |