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 5 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 | |
6 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 1 of #text > DIV > DIV > BODY > HTML > #document to 5 of #t
ext > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream
stillSelecting:FALSE | |
7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 1 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
9 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range fr
om 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #d
ocument givenAction:WebViewInsertActionPasted | |
10 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > DIV
> BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document t
oDOMRange:range from 5 of #text > DIV > DIV > BODY > HTML > #document to 5 of #t
ext > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream
stillSelecting:FALSE | 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
| 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
12 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n | 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
n |
13 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification | 7 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
14 Tests: | 8 Tests: |
15 Smart paste when pasting at the beginning of a line before a word. | 9 Smart paste when pasting at the beginning of a line before a word. |
16 Expected Results: | 10 Expected Results: |
17 A space should be added after the pasted word before the preexising word. It sho
uld like this: | 11 A space should be added after the pasted word before the preexising word. It sho
uld like this: |
18 test test | 12 test test |
19 test test | 13 test test |
20 execCopyCommand: <div id="test" class="editing"> test </div> | 14 execCopyCommand: <div id="test" class="editing"> test </div> |
21 execPasteCommand: <div id="test" class="editing">test test </div> | 15 execPasteCommand: <div id="test" class="editing">test test </div> |
OLD | NEW |