| OLD | NEW |
| 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML
> #document to 3 of DIV > BODY > HTML > #document | |
| 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification | |
| 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | |
| 4 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY
> HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range
from 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV
> BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:
FALSE | |
| 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 1 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
| 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
| 7 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range fr
om 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #text > DIV > DIV >
BODY > HTML > #document givenAction:WebViewInsertActionPasted | 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
| 8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > DIV
> BODY > HTML > #document to 5 of #text > DIV > DIV > BODY > HTML > #document t
oDOMRange:range from 10 of #text > DIV > DIV > BODY > HTML > #document to 10 of
#text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstre
am stillSelecting:FALSE | |
| 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
| 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification | 5 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
| 11 Tests: | 6 Tests: |
| 12 Smart paste when pasting after a word at the end of a line. | 7 Smart paste when pasting after a word at the end of a line. |
| 13 Expected Results: | 8 Expected Results: |
| 14 A space should be added between the preexisting word and the word that's pasted.
It should like this: | 9 A space should be added between the preexisting word and the word that's pasted.
It should like this: |
| 15 test test | 10 test test |
| 16 test test | 11 test test |
| 17 execCopyCommand: <div id="test" class="editing"> test </div> | 12 execCopyCommand: <div id="test" class="editing"> test </div> |
| 18 execPasteCommand: <div id="test" class="editing"> test test</div> | 13 execPasteCommand: <div id="test" class="editing"> test test</div> |
| OLD | NEW |