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: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
8 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range fr
om 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV >
BODY > HTML > #document givenAction:WebViewInsertActionPasted | |
9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 15 of #text > DIV > DI
V > BODY > HTML > #document to 15 of #text > DIV > DIV > BODY > HTML > #document
toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 o
f #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownst
ream stillSelecting:FALSE | 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification | 8 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
14 Tests: | 9 Tests: |
15 Smart paste when pasting after word and a space before another word. | 10 Smart paste when pasting after word and a space before another word. |
16 Expected Results: | 11 Expected Results: |
17 A space should be added after the pasted word before the other preexisting word.
It should like this: | 12 A space should be added after the pasted word before the other preexisting word.
It should like this: |
18 test test test | 13 test test test |
19 test test test | 14 test test test |
20 execCopyCommand: <div id="test" class="editing"> test test </div> | 15 execCopyCommand: <div id="test" class="editing"> test test </div> |
21 execPasteCommand: <div id="test" class="editing"> test test test</div> | 16 execPasteCommand: <div id="test" class="editing"> test test test</div> |
OLD | NEW |