Updated for fixes of:
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2006 21:11:04 +0000 (21:11 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2006 21:11:04 +0000 (21:11 +0000)
        <rdar://problem/3907635> copy/paste of list item text moves list item up one <LI>
        <rdar://problem/3907647> Enhance list editing: return inserts <li></li>
        <rdar://problem/4060158> deleting selection within table deletes more than intended
        <rdar://problem/4061232> Deleting a list can delete unselected content
        <rdar://problem/4062212> after pasting in contents of web.apple.com, typing before start adds to table instead of before table
        <rdar://problem/4064437> After copy/paste from bugweb cannot go back to entering text at left side of page
        <rdar://problem/4259845> Table editing in design mode is broken
        <rdar://problem/4287667> Insertion point goes before table instead of inside first cell
        <rdar://problem/4345749> Editing HTML - Enter at end of <LI> inserts uneditable blank <LI>
        <rdar://problem/4345794> HTML editing: Enter at end of last <LI> does not add new <LI>
        <rdar://problem/4345825> HTML Editing: editing first <LI> element removes first <LI> and more
        <rdar://problem/4345835> HTML editing: editing last <LI> removes everything within <BODY>
        <rdar://problem/4345879> HTML editing: editing first <TD> moves data out of table

        * editing/deleting/delete-4083333-fix-expected.txt:
        * editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
        * editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
        * editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
        * editing/deleting/delete-image-004-expected.txt:
        * editing/deleting/delete-line-015-expected.txt:
        * editing/deleting/delete-select-all-001-expected.txt:
        * editing/pasteboard/paste-list-001-expected.txt:
        * editing/pasteboard/paste-table-001-expected.txt:
        * editing/pasteboard/paste-table-001.html:
        * editing/selection/3690703-2-expected.txt:
        * editing/selection/3690703-2.html:
        * editing/selection/3690703-expected.txt:
        * editing/selection/3690719-expected.txt:
        * editing/selection/move-by-line-001-expected.txt:
        * editing/selection/move-by-line-001.html:
        * editing/selection/replaced-boundaries-3-expected.txt:
        * editing/unsupported-content/list-type-after-expected.txt:
        * editing/unsupported-content/list-type-after.html:
        * editing/unsupported-content/list-type-before-expected.txt:
        * editing/unsupported-content/list-type-before.html:
        * editing/unsupported-content/table-delete-001-expected.txt:
        * editing/unsupported-content/table-delete-001.html:
        * editing/unsupported-content/table-delete-002-expected.txt:
        * editing/unsupported-content/table-delete-002.html:
        * editing/unsupported-content/table-type-after-expected.txt:
        * editing/unsupported-content/table-type-after.html:
        * editing/unsupported-content/table-type-before-expected.txt:
        * editing/unsupported-content/table-type-before.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12359 268f45cc-cd09-0410-ab3c-d52691b4dbfc

30 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-4083333-fix-expected.txt
LayoutTests/editing/deleting/delete-at-paragraph-boundaries-003-expected.txt
LayoutTests/editing/deleting/delete-at-paragraph-boundaries-006-expected.txt
LayoutTests/editing/deleting/delete-at-paragraph-boundaries-011-expected.txt
LayoutTests/editing/deleting/delete-image-004-expected.txt
LayoutTests/editing/deleting/delete-line-015-expected.txt
LayoutTests/editing/deleting/delete-select-all-001-expected.txt
LayoutTests/editing/pasteboard/paste-list-001-expected.txt
LayoutTests/editing/pasteboard/paste-table-001-expected.txt
LayoutTests/editing/pasteboard/paste-table-001.html
LayoutTests/editing/selection/3690703-2-expected.txt
LayoutTests/editing/selection/3690703-2.html
LayoutTests/editing/selection/3690703-expected.txt
LayoutTests/editing/selection/3690719-expected.txt
LayoutTests/editing/selection/move-by-line-001-expected.txt
LayoutTests/editing/selection/move-by-line-001.html
LayoutTests/editing/selection/replaced-boundaries-3-expected.txt
LayoutTests/editing/unsupported-content/list-type-after-expected.txt
LayoutTests/editing/unsupported-content/list-type-after.html
LayoutTests/editing/unsupported-content/list-type-before-expected.txt
LayoutTests/editing/unsupported-content/list-type-before.html
LayoutTests/editing/unsupported-content/table-delete-001-expected.txt
LayoutTests/editing/unsupported-content/table-delete-001.html
LayoutTests/editing/unsupported-content/table-delete-002-expected.txt
LayoutTests/editing/unsupported-content/table-delete-002.html
LayoutTests/editing/unsupported-content/table-type-after-expected.txt
LayoutTests/editing/unsupported-content/table-type-after.html
LayoutTests/editing/unsupported-content/table-type-before-expected.txt
LayoutTests/editing/unsupported-content/table-type-before.html

index 9229ca4..ff8ba54 100644 (file)
@@ -1,3 +1,51 @@
+2006-01-25  David Harrison  <harrison@apple.com>
+
+        Updated for fixes of:
+        
+        <rdar://problem/3907635> copy/paste of list item text moves list item up one <LI>
+        <rdar://problem/3907647> Enhance list editing: return inserts <li></li>
+        <rdar://problem/4060158> deleting selection within table deletes more than intended
+        <rdar://problem/4061232> Deleting a list can delete unselected content
+        <rdar://problem/4062212> after pasting in contents of web.apple.com, typing before start adds to table instead of before table
+        <rdar://problem/4064437> After copy/paste from bugweb cannot go back to entering text at left side of page
+        <rdar://problem/4259845> Table editing in design mode is broken
+        <rdar://problem/4287667> Insertion point goes before table instead of inside first cell
+        <rdar://problem/4345749> Editing HTML - Enter at end of <LI> inserts uneditable blank <LI>
+        <rdar://problem/4345794> HTML editing: Enter at end of last <LI> does not add new <LI>
+        <rdar://problem/4345825> HTML Editing: editing first <LI> element removes first <LI> and more
+        <rdar://problem/4345835> HTML editing: editing last <LI> removes everything within <BODY>
+        <rdar://problem/4345879> HTML editing: editing first <TD> moves data out of table
+
+        * editing/deleting/delete-4083333-fix-expected.txt:
+        * editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
+        * editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
+        * editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
+        * editing/deleting/delete-image-004-expected.txt:
+        * editing/deleting/delete-line-015-expected.txt:
+        * editing/deleting/delete-select-all-001-expected.txt:
+        * editing/pasteboard/paste-list-001-expected.txt:
+        * editing/pasteboard/paste-table-001-expected.txt:
+        * editing/pasteboard/paste-table-001.html:
+        * editing/selection/3690703-2-expected.txt:
+        * editing/selection/3690703-2.html:
+        * editing/selection/3690703-expected.txt:
+        * editing/selection/3690719-expected.txt:
+        * editing/selection/move-by-line-001-expected.txt:
+        * editing/selection/move-by-line-001.html:
+        * editing/selection/replaced-boundaries-3-expected.txt:
+        * editing/unsupported-content/list-type-after-expected.txt:
+        * editing/unsupported-content/list-type-after.html:
+        * editing/unsupported-content/list-type-before-expected.txt:
+        * editing/unsupported-content/list-type-before.html:
+        * editing/unsupported-content/table-delete-001-expected.txt:
+        * editing/unsupported-content/table-delete-001.html:
+        * editing/unsupported-content/table-delete-002-expected.txt:
+        * editing/unsupported-content/table-delete-002.html:
+        * editing/unsupported-content/table-type-after-expected.txt:
+        * editing/unsupported-content/table-type-after.html:
+        * editing/unsupported-content/table-type-before-expected.txt:
+        * editing/unsupported-content/table-type-before.html:
+
 2006-01-25  Alexey Proskuryakov  <ap@nypop.com>
 
         Reviewed by Darin.
index 0f425be..ae91938 100644 (file)
@@ -15,5 +15,4 @@ layer at (0,0) size 800x600
           RenderInline {A} at (0,0) size 26x28 [color=#0000EE]
             RenderText {TEXT} at (94,14) size 26x28
               text run at (94,14) width 26: "lin"
-        RenderText {TEXT} at (0,0) size 0x0
 caret: position 3 of child 0 {TEXT} of child 1 {A} of child 1 {SPAN} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index acbd2a3..af2d438 100644 (file)
@@ -2,7 +2,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BR > P to 0 of BR > P toDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P to 0 of P toDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index 2692ffa..76e9492 100644 (file)
@@ -2,7 +2,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BR > P to 0 of BR > P toDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P to 0 of P toDOMRange:range from 0 of P > DIV > DIV > BODY > HTML > #document to 0 of P > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index bf21e1e..3d4c668 100644 (file)
@@ -1,7 +1,7 @@
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BR > P to 0 of BR > P toDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P to 0 of P toDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index 8fad92f..6ae9f42 100644 (file)
@@ -2,7 +2,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of IMG > SPAN to 0 of IMG > SPAN toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of IMG > SPAN to 4 of SPAN toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index 77cba55..3ff8368 100644 (file)
@@ -1,6 +1,6 @@
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BR > DIV to 0 of BR > DIV toDOMRange:range from 2 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV to 0 of DIV toDOMRange:range from 2 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index 97fed62..bc40b36 100644 (file)
@@ -1,7 +1,7 @@
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document to 0 of TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document to 5 of #text > TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document to 0 of TD > TR > TBODY > TABLE > DIV > BODY > HTML > #document toDOMRange:range from 0 of TABLE > DIV > BODY > HTML > #document to 2 of TABLE > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > TD > TR > TBODY > TABLE to 5 of #text > TD > TR > TBODY > TABLE toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of TABLE to 2 of TABLE toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index bc14eb3..d6ce1f8 100644 (file)
@@ -4,7 +4,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 21 of #text > LI > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 21 of #text > LI > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > DIV > BODY > HTML > #document toDOMRange:range from 21 of #text > LI > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 21 of #text > LI > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > DIV > BODY > HTML > #document toDOMRange:range from 21 of #text > LI > OL > OL > DIV > BODY > HTML > #document to 21 of #text > LI > OL > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
@@ -12,14 +12,14 @@ layer at (0,0) size 800x600
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {DIV} at (0,0) size 784x296 [border: (2px solid #FF0000)]
+      RenderBlock {DIV} at (0,0) size 784x272 [border: (2px solid #FF0000)]
         RenderBlock (anonymous) at (14,14) size 756x28
           RenderInline {SPAN} at (0,0) size 151x28
             RenderText {TEXT} at (0,0) size 151x28
               text run at (0,0) width 151: "Empty list item"
           RenderText {TEXT} at (0,0) size 0x0
         RenderBlock {P} at (14,66) size 756x0
-        RenderBlock {OL} at (14,66) size 756x84
+        RenderBlock {OL} at (14,66) size 756x168
           RenderListItem {LI} at (40,0) size 716x28
             RenderListMarker at (0,0) size 0x22
             RenderText {TEXT} at (0,0) size 211x28
@@ -30,15 +30,15 @@ layer at (0,0) size 800x600
             RenderListMarker at (0,0) size 0x22
             RenderText {TEXT} at (0,0) size 211x28
               text run at (0,0) width 211: "I should be number 3."
-        RenderBlock {OL} at (14,174) size 756x84
-          RenderListItem {LI} at (40,0) size 716x28
-            RenderListMarker at (0,0) size 0x22
-            RenderText {TEXT} at (0,0) size 211x28
-              text run at (0,0) width 211: "I should be number 1."
-          RenderListItem {LI} at (40,28) size 716x28
-            RenderListMarker at (0,0) size 0x22
-          RenderListItem {LI} at (40,56) size 716x28
-            RenderListMarker at (0,0) size 0x22
-            RenderText {TEXT} at (0,0) size 211x28
-              text run at (0,0) width 211: "I should be number 3."
-caret: position 21 of child 0 {TEXT} of child 2 {LI} of child 5 {OL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+          RenderBlock {OL} at (40,84) size 716x84
+            RenderListItem {LI} at (40,0) size 676x28
+              RenderListMarker at (0,0) size 0x22
+              RenderText {TEXT} at (0,0) size 211x28
+                text run at (0,0) width 211: "I should be number 1."
+            RenderListItem {LI} at (40,28) size 676x28
+              RenderListMarker at (0,0) size 0x22
+            RenderListItem {LI} at (40,56) size 676x28
+              RenderListMarker at (0,0) size 0x22
+              RenderText {TEXT} at (0,0) size 211x28
+                text run at (0,0) width 211: "I should be number 3."
+caret: position 21 of child 0 {TEXT} of child 2 {LI} of child 6 {OL} of child 4 {OL} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index a9cf7b6..332e23d 100644 (file)
@@ -5,8 +5,39 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document to 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document to 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document toDOMRange:range from 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document to 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 2 of TABLE > P > DIV > BODY > HTML > #document to 2 of TABLE > P > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of TABLE > P > DIV > BODY > HTML > #document to 2 of TABLE > P > DIV > BODY > HTML > #document toDOMRange:range from 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document to 32 of #text > TD > TR > TBODY > TABLE > P > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index 55549c3..80fc4cb 100644 (file)
 
 function editingTest() {
     moveSelectionForwardByLineCommand();
-    for (i = 0; i < 4; i++)
+    for (i = 0; i < 3; i++)
         extendSelectionForwardByLineCommand();
+    for (i = 0; i < 32; i++)
+        extendSelectionForwardByCharacterCommand();
     copyCommand();
     moveSelectionForwardByLineCommand();
     pasteCommand();
index b3a457d..de8d72f 100644 (file)
@@ -5,6 +5,8 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 layer at (0,0) size 800x600
   RenderCanvas at (0,0) size 800x600
 layer at (0,0) size 800x600
@@ -142,5 +144,5 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 60x13
             RenderText {TEXT} at (362,0) size 60x13
               text run at (362,0) width 60: "\x{A9}2005 Google"
-selection start: position 0 of child 0 {TEXT} of child 0 {B} of child 0 {FONT} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 0 of child 3 {INPUT} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 0 {TEXT} of child 0 {FONT} of child 2 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 5 {BR} of child 0 {FONT} of child 2 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
index 599d856..ebeb026 100644 (file)
@@ -7,10 +7,10 @@
 <script>
 
 function editingTest() {
-    for (var i = 0; i < 5; i++) {
+    for (var i = 0; i < 6; i++) {
         moveSelectionForwardByLineCommand();
     }
-    for (var i = 0; i < 30; i++) {
+    for (var i = 0; i < 2; i++) {
         extendSelectionBackwardByLineCommand();
     }
 }
index a3ce854..0befa3a 100644 (file)
@@ -2,6 +2,12 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 layer at (0,0) size 800x600
   RenderCanvas at (0,0) size 800x600
 layer at (0,0) size 800x600
@@ -139,5 +145,5 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 60x13
             RenderText {TEXT} at (362,0) size 60x13
               text run at (362,0) width 60: "\x{A9}2005 Google"
-selection start: position 0 of child 0 {TEXT} of child 0 {B} of child 0 {FONT} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
-selection end:   position 0 of child 3 {INPUT} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection end:   position 1 of child 3 {TEXT} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
index 73094d8..81a14a3 100644 (file)
@@ -1,5 +1,5 @@
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of TD > TR > TBODY > TABLE > DIV > CENTER > BODY > HTML > #document to 0 of TD > TR > TBODY > TABLE > DIV > CENTER > BODY > HTML > #document toDOMRange:range from 0 of #text > B > FONT > TD > TR > TBODY > TABLE > DIV > CENTER > BODY > HTML > #document to 1 of #text > FONT > DIV > CENTER > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of TABLE > DIV > CENTER > BODY > HTML > #document to 0 of TABLE > DIV > CENTER > BODY > HTML > #document toDOMRange:range from 0 of TABLE > DIV > CENTER > BODY > HTML > #document to 1 of #text > FONT > DIV > CENTER > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 layer at (0,0) size 800x600
   RenderCanvas at (0,0) size 800x600
@@ -138,5 +138,5 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 60x13
             RenderText {TEXT} at (362,0) size 60x13
               text run at (362,0) width 60: "\x{A9}2005 Google"
-selection start: position 0 of child 0 {TEXT} of child 0 {B} of child 0 {FONT} of child 0 {TD} of child 0 {TR} of child 0 {TBODY} of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
 selection end:   position 1 of child 3 {TEXT} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
index cbba57b..a21d406 100644 (file)
@@ -2,6 +2,7 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 layer at (0,0) size 800x600
   RenderCanvas at (0,0) size 800x600
 layer at (0,0) size 800x600
@@ -21,4 +22,4 @@ layer at (0,0) size 800x600
                 RenderTableCell {TD} at (2,108) size 58x54 [border: (1px inset #808080)] [r=2 c=0 rs=1 cs=1]
                   RenderText {TEXT} at (13,13) size 31x28
                     text run at (13,13) width 31: "bar"
-caret: position 3 of child 0 {TEXT} of child 0 {TD} of child 2 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 2 of child 1 {TABLE} of child 1 {DIV} of child 1 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 2fce0b7..5a989ff 100644 (file)
@@ -18,7 +18,7 @@
 <script>
 
 function editingTest() {
-    for (i = 0; i < 3; i++) {
+    for (i = 0; i < 4; i++) {
         moveSelectionForwardByLineCommand();    
     }
 }
index 168a2ca..ba5ecdb 100644 (file)
@@ -1,5 +1,5 @@
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 4 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 2 of SELECT > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
index c4b08be..87ee357 100644 (file)
@@ -2,13 +2,13 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 10 of #text > LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 10 of #text > LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 11 of #text > LI > UL > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 11 of #text > LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 12 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 12 of #text > LI > UL > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 12 of #text > LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 13 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 13 of #text > LI > UL > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
@@ -44,7 +44,7 @@ layer at (0,0) size 800x600
               text run at (0,72) width 99: "For this test: "
           RenderText {TEXT} at (99,72) size 424x22
             text run at (99,72) width 424: "Typed text should appear after (on the line below) the list."
-      RenderBlock {DIV} at (0,238) size 784x164 [border: (2px solid #008000)]
+      RenderBlock {DIV} at (0,238) size 784x136 [border: (2px solid #008000)]
         RenderBlock {UL} at (2,26) size 780x84
           RenderListItem {LI} at (40,0) size 740x28
             RenderListMarker at (0,0) size 0x22
@@ -56,13 +56,10 @@ layer at (0,0) size 800x600
               text run at (0,0) width 79: "line two"
           RenderListItem {LI} at (40,56) size 740x28
             RenderListMarker at (0,0) size 0x22
-            RenderText {TEXT} at (0,0) size 92x28
-              text run at (0,0) width 92: "line three"
-        RenderBlock (anonymous) at (2,134) size 780x28
-          RenderText {TEXT} at (0,0) size 36x28
-            text run at (0,0) width 36: "xxx"
-      RenderBlock {DIV} at (0,412) size 784x164
-        RenderBlock {DIV} at (0,0) size 784x164 [border: (2px solid #FF0000)]
+            RenderText {TEXT} at (0,0) size 128x28
+              text run at (0,0) width 128: "line threexxx"
+      RenderBlock {DIV} at (0,384) size 784x136
+        RenderBlock {DIV} at (0,0) size 784x136 [border: (2px solid #FF0000)]
           RenderBlock {UL} at (2,26) size 780x84
             RenderListItem {LI} at (40,0) size 740x28
               RenderListMarker at (0,0) size 0x22
@@ -74,9 +71,6 @@ layer at (0,0) size 800x600
                 text run at (0,0) width 79: "line two"
             RenderListItem {LI} at (40,56) size 740x28
               RenderListMarker at (0,0) size 0x22
-              RenderText {TEXT} at (0,0) size 92x28
-                text run at (0,0) width 92: "line three"
-          RenderBlock (anonymous) at (2,134) size 780x28
-            RenderText {TEXT} at (0,0) size 36x28
-              text run at (0,0) width 36: "xxx"
-caret: position 3 of child 2 {TEXT} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+              RenderText {TEXT} at (0,0) size 128x28
+                text run at (0,0) width 128: "line threexxx"
+caret: position 13 of child 0 {TEXT} of child 5 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index e4284e9..4f70c76 100644 (file)
@@ -53,9 +53,8 @@ The content in the red box must exactly match the content in the green box (exce
 <ul>
 <li>line one</li>
 <li>line two</li>
-<li>line three</li>
+<li>line threexxx</li>
 </ul>
-xxx
 </div>
 
 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
index 9f9c9ce..ecdc142 100644 (file)
@@ -1,11 +1,11 @@
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of LI > UL > DIV > DIV > BODY > HTML > #document to 0 of LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of LI > UL > DIV > DIV > BODY > HTML > #document to 0 of LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 1 of #text > LI > UL > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 1 of #text > LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 2 of #text > LI > UL > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 2 of #text > LI > UL > DIV > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > LI > UL > DIV > DIV > BODY > HTML > #document to 3 of #text > LI > UL > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
@@ -39,17 +39,14 @@ layer at (0,0) size 800x600
           RenderInline {I} at (0,0) size 99x22
             RenderText {TEXT} at (0,72) size 99x22
               text run at (0,72) width 99: "For this test: "
-          RenderText {TEXT} at (99,72) size 436x22
-            text run at (99,72) width 436: "Typed text should appear before (on the line above) the list."
-      RenderBlock {DIV} at (0,238) size 784x164 [border: (2px solid #008000)]
-        RenderBlock (anonymous) at (2,2) size 780x28
-          RenderText {TEXT} at (0,0) size 36x28
-            text run at (0,0) width 36: "xxx"
-        RenderBlock {UL} at (2,54) size 780x84
+          RenderText {TEXT} at (99,72) size 415x22
+            text run at (99,72) width 415: "Typed text should appear at the start of the first list item."
+      RenderBlock {DIV} at (0,238) size 784x136 [border: (2px solid #008000)]
+        RenderBlock {UL} at (2,26) size 780x84
           RenderListItem {LI} at (40,0) size 740x28
             RenderListMarker at (0,0) size 0x22
-            RenderText {TEXT} at (0,0) size 78x28
-              text run at (0,0) width 78: "line one"
+            RenderText {TEXT} at (0,0) size 114x28
+              text run at (0,0) width 114: "xxxline one"
           RenderListItem {LI} at (40,28) size 740x28
             RenderListMarker at (0,0) size 0x22
             RenderText {TEXT} at (0,0) size 79x28
@@ -58,16 +55,13 @@ layer at (0,0) size 800x600
             RenderListMarker at (0,0) size 0x22
             RenderText {TEXT} at (0,0) size 92x28
               text run at (0,0) width 92: "line three"
-      RenderBlock {DIV} at (0,412) size 784x164
-        RenderBlock {DIV} at (0,0) size 784x164 [border: (2px solid #FF0000)]
-          RenderBlock (anonymous) at (2,2) size 780x28
-            RenderText {TEXT} at (0,0) size 36x28
-              text run at (0,0) width 36: "xxx"
-          RenderBlock {UL} at (2,54) size 780x84
+      RenderBlock {DIV} at (0,384) size 784x136
+        RenderBlock {DIV} at (0,0) size 784x136 [border: (2px solid #FF0000)]
+          RenderBlock {UL} at (2,26) size 780x84
             RenderListItem {LI} at (40,0) size 740x28
               RenderListMarker at (0,0) size 0x22
-              RenderText {TEXT} at (0,0) size 78x28
-                text run at (0,0) width 78: "line one"
+              RenderText {TEXT} at (0,0) size 114x28
+                text run at (0,0) width 114: "xxxline one"
             RenderListItem {LI} at (40,28) size 740x28
               RenderListMarker at (0,0) size 0x22
               RenderText {TEXT} at (0,0) size 79x28
@@ -76,4 +70,4 @@ layer at (0,0) size 800x600
               RenderListMarker at (0,0) size 0x22
               RenderText {TEXT} at (0,0) size 92x28
                 text run at (0,0) width 92: "line three"
-caret: position 3 of child 1 {TEXT} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
+caret: position 3 of child 0 {TEXT} of child 1 {LI} of child 1 {UL} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 5cbe129..49042fd 100644 (file)
@@ -43,14 +43,13 @@ Our ability to "edit around" content the HTML editing code does not yet handle v
 Expected Results:
 <br>
 The content in the red box must exactly match the content in the green box (except for the border color).
-<br><i>For this test: </i>Typed text should appear before (on the line above) the list.
+<br><i>For this test: </i>Typed text should appear at the start of the first list item.
 </div>
 </div>
 
 <div class="results">
-xxx
 <ul>
-<li>line one</li>
+<li>xxxline one</li>
 <li>line two</li>
 <li>line three</li>
 </ul>
index 8ce6d88..c1c5db6 100644 (file)
@@ -17,7 +17,8 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > TD > TR > TBODY > TABLE to 1 of #text > TD > TR > TBODY > TABLE toDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > TD > TR > TBODY > TABLE to 2 of TABLE toDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 layer at (0,0) size 800x600
index d5dd6bd..438c1b8 100644 (file)
@@ -22,7 +22,7 @@
 
 function editingTest() {
     moveSelectionForwardByLineCommand();
-    for (i = 0; i < 17; i++)
+    for (i = 0; i < 18; i++)
         extendSelectionForwardByCharacterCommand();
     deleteCommand();
 }
index 6f3bad5..1a075e1 100644 (file)
@@ -10,6 +10,11 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text to 6 of #text toDOMRange:range from 7 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
@@ -55,7 +60,4 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x32 [border: (2px solid #FF0000)]
           RenderText {TEXT} at (2,2) size 62x28
             text run at (2,2) width 62: "before"
-          RenderInline {FONT} at (0,0) size 0x22
-            RenderInline {SPAN} at (0,0) size 0x18
-              RenderBR {BR} at (0,0) size 0x0
 caret: position 7 of child 0 {TEXT} of child 1 {DIV} of child 5 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 062463c..ccca048 100644 (file)
@@ -21,7 +21,8 @@
 <script>
 
 function editingTest() {
-    moveSelectionForwardByLineCommand();
+    for (i = 0; i < 6; i++)
+        moveSelectionForwardByCharacterCommand();
     for (i = 0; i < 10; i++)
         extendSelectionForwardByLineCommand();
     deleteCommand();
@@ -58,19 +59,19 @@ before
 <div id="test" class="editing">
 before<table border="1">
 <tr>
-<td>1</td>
-<td>2</td>
-<td>3</td>
+<td>one</td>
+<td>two</td>
+<td>three</td>
 </tr>
 <tr>
-<td>4</td>
-<td>5</td>
-<td>6</td>
+<td>four</td>
+<td>five</td>
+<td>six</td>
 </tr>
 <tr>
-<td>7</td>
-<td>8</td>
-<td>9</td>
+<td>seven</td>
+<td>eight</td>
+<td>nine</td>
 </tr>
 </table>
 after
index f6d49fd..677cf8e 100644 (file)
@@ -8,7 +8,8 @@ EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotificatio
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > TD > TR > TBODY > TABLE > DIV > DIV > BODY > HTML > #document to 1 of #text > TD > TR > TBODY > TABLE > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of TABLE > DIV > DIV > BODY > HTML > #document to 2 of TABLE > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
@@ -33,8 +34,8 @@ layer at (0,0) size 800x600
           RenderInline {I} at (0,0) size 99x22
             RenderText {TEXT} at (0,50) size 99x22
               text run at (0,50) width 99: "For this test: "
-          RenderText {TEXT} at (99,50) size 236x22
-            text run at (99,50) width 236: "Test typing at the end of a table."
+          RenderText {TEXT} at (99,50) size 178x22
+            text run at (99,50) width 178: "Test typing after a table."
         RenderBlock (anonymous) at (20,92) size 744x22
           RenderBR {BR} at (0,0) size 0x22
         RenderBlock {DIV} at (20,114) size 744x94
index 4d1ed9e..b37d211 100644 (file)
@@ -21,7 +21,7 @@
 <script>
 
 function editingTest() {
-    for (i = 0; i < 8; i++)
+    for (i = 0; i < 10; i++)
         moveSelectionForwardByLineCommand();
     moveSelectionForwardByCharacterCommand();
     for (i = 0; i < 3; i++)
@@ -39,7 +39,7 @@ function editingTest() {
 Tests: 
 <br>
 Our ability to "edit around" content the HTML editing code does not yet handle very well.
-<br><i>For this test: </i>Test typing at the end of a table.
+<br><i>For this test: </i>Test typing after a table.
 </div>
 <br>
 <div class="expected">
index 926977f..9038fa5 100644 (file)
@@ -1,5 +1,5 @@
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of TD > TR > TBODY > TABLE > DIV > DIV > BODY > HTML > #document to 0 of TD > TR > TBODY > TABLE > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of TABLE > DIV > DIV > BODY > HTML > #document to 0 of TABLE > DIV > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > DIV > BODY > HTML > #document to 2 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
@@ -24,8 +24,8 @@ layer at (0,0) size 800x600
           RenderInline {I} at (0,0) size 99x22
             RenderText {TEXT} at (0,50) size 99x22
               text run at (0,50) width 99: "For this test: "
-          RenderText {TEXT} at (99,50) size 241x22
-            text run at (99,50) width 241: "Test typing at the start of a table."
+          RenderText {TEXT} at (99,50) size 191x22
+            text run at (99,50) width 191: "Test typing before a table."
         RenderBlock (anonymous) at (20,92) size 744x22
           RenderBR {BR} at (0,0) size 0x22
         RenderBlock {DIV} at (20,114) size 744x94
index e139209..9630f31 100644 (file)
@@ -36,7 +36,7 @@ function editingTest() {
 Tests: 
 <br>
 Our ability to "edit around" content the HTML editing code does not yet handle very well.
-<br><i>For this test: </i>Test typing at the start of a table.
+<br><i>For this test: </i>Test typing before a table.
 </div>
 <br>
 <div class="expected">