| <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> |
| <div style="border: none; height: 12px"></div> |
| <span id="test">foo</span><br>bar |
| <script src="../../resources/dump-as-markup.js"></script> |
| testRunner.dumpEditingCallbacks(); |
| var root = document.getElementById('root'); |
| window.getSelection().setPosition(document.getElementById('test'), 0); |
| window.getSelection().modify('move', 'forward', 'character'); |
| document.execCommand('Delete'); |
| document.execCommand('InsertParagraph'); |
| document.execCommand('InsertParagraph'); |
| Markup.description('Test inserting paragraphs: should see "foo", then an empty line, then "bar" in the next line.\n'+ |
| 'Fix for this bug: <rdar://problem/3924579> REGRESSION (Mail): After deleting, hitting return key does not insert visible newline'); |