| .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 in the middle of a word. |
| <div class="expected-results"> |
| Spaces should be added before and after the pasted word. It should look like this: |
| <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> |
| <div id="test" class="editing"> |
| <script src="../editing.js"></script> |
| <script src="../../resources/ui-helper.js"></script> |
| async function editingTest() { |
| await UIHelper.selectWordByDoubleTapOrClick(document.getElementById('test')); |
| moveSelectionBackwardByWordCommand(); |
| moveSelectionForwardByCharacterCommand(); |
| moveSelectionForwardByCharacterCommand(); |
| runDumpAsTextEditingTest(true); |