| <script src="../editing.js"></script> |
| <script src="../../resources/dump-as-markup.js"></script> |
| <title>Editing Test</title> |
| <div id="test" class="editing"><p>foo</p><p>bar</p></div> |
| window.getSelection().setPosition(document.getElementById('test'), 0); |
| extendSelectionForwardByCharacterCommand(); |
| insertParagraphCommand(); |
| Markup.description('This test copies, deletes, and paste back <div id="test" class="editing"><p>foo</p><p>bar</p></div>\n' |
| + 'It then inserts the paragraph and pastes the contents again.'); |