| .scenario { margin-bottom: 16px;} |
| .scenario:first-line { font-weight: bold; margin-bottom: 16px;} |
| .expected-results:first-line { font-weight: bold } |
| <div class="explanation"> |
| Smart paste when pasting a paragraph between two paragraphs. |
| <div class="expected-results"> |
| A newline should be added between the preexisting paragraphs and the paragraph that's pasted. This should work with multiple pastes. The caret should end up on the next line, thus allowing another paragraph to be pasted on the next line. It should like this: |
| <div contenteditable id="root" class="editing" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> |
| <script src="../editing.js"></script> |
| <script src="../../resources/ui-helper.js"></script> |
| async function editingTest() { |
| internals.settings.setEditingBehavior("ios"); |
| await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test')); |
| extendSelectionForwardByLineBoundaryCommand(); |
| moveSelectionForwardByCharacterCommand(); |
| moveSelectionForwardByCharacterCommand(); |
| runDumpAsTextEditingTest(true); |