diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index 96cff1584c5a..83d87af89733 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,34 @@ +2011-05-12 Chang Shu + + Reviewed by Csaba Osztrogonác. + + [Qt] Rebaseline editing/pasteboard tests that are working + https://bugs.webkit.org/show_bug.cgi?id=60707 + + * platform/qt/Skipped: + * platform/qt/editing/pasteboard/4076267-2-expected.png: Added. + * platform/qt/editing/pasteboard/4076267-2-expected.txt: Added. + * platform/qt/editing/pasteboard/4076267-expected.png: Added. + * platform/qt/editing/pasteboard/4076267-expected.txt: Added. + * platform/qt/editing/pasteboard/4806874-expected.png: Added. + * platform/qt/editing/pasteboard/4806874-expected.txt: + * platform/qt/editing/pasteboard/5387578-expected.png: Added. + * platform/qt/editing/pasteboard/5387578-expected.txt: + * platform/qt/editing/pasteboard/bad-placeholder-expected.png: Added. + * platform/qt/editing/pasteboard/bad-placeholder-expected.txt: + * platform/qt/editing/pasteboard/block-wrappers-necessary-expected.png: Added. + * platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt: + * platform/qt/editing/pasteboard/input-field-1-expected.png: Added. + * platform/qt/editing/pasteboard/input-field-1-expected.txt: + * platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.png: Added. + * platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt: + * platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.png: Added. + * platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt: + * platform/qt/editing/pasteboard/paste-text-008-expected.png: Added. + * platform/qt/editing/pasteboard/paste-text-008-expected.txt: Added. + * platform/qt/editing/pasteboard/smart-paste-008-expected.png: Added. + * platform/qt/editing/pasteboard/smart-paste-008-expected.txt: Added. + 2011-05-12 Andrew Wilson Unreviewed expectations update for Chromium. diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped index e2232f3527b1..2215324d2b3e 100644 --- a/LayoutTests/platform/qt/Skipped +++ b/LayoutTests/platform/qt/Skipped @@ -336,26 +336,11 @@ http/tests/xmlhttprequest/basic-auth-nouser.html # =========================================================================== # # Failing pasteboard tests. # # =========================================================================== # -#------ Not selecting all of text. -#------ sel.modify("move", "forward", "word"); does not select the last character in the word -editing/pasteboard/smart-paste-008.html #------ safe to skip. Qt results same as chromium's. Mac drops the 'b' in the final bar, #------ that looks like a bug. editing/pasteboard/interchange-newline-2.html # ----- Results appear correct but have suspicious rendertree differences. editing/pasteboard/pasting-tabs.html -editing/pasteboard/nested-blocks-with-text-area.html -editing/pasteboard/nested-blocks-with-text-field.html -editing/pasteboard/input-field-1.html -editing/pasteboard/4806874.html -# ----- These are actually safe to unskip. x/y differences only. -editing/pasteboard/5387578.html -editing/pasteboard/bad-placeholder.html -# ----- Rendertree results OK but differences in message from editing delegate. -editing/pasteboard/4076267-2.html -editing/pasteboard/4076267.html -editing/pasteboard/block-wrappers-necessary.html -editing/pasteboard/paste-text-008.html # ----- Rendertree results OK but differences in editing delegate message due to rendering. # ----- This looks safe to unskip. editing/pasteboard/paste-xml.xhtml diff --git a/LayoutTests/platform/qt/editing/pasteboard/4076267-2-expected.png b/LayoutTests/platform/qt/editing/pasteboard/4076267-2-expected.png new file mode 100644 index 000000000000..90b0b4483b50 Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/4076267-2-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/4076267-2-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4076267-2-expected.txt new file mode 100644 index 000000000000..860beed6ed15 --- /dev/null +++ b/LayoutTests/platform/qt/editing/pasteboard/4076267-2-expected.txt @@ -0,0 +1,30 @@ +EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document +EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 96 of #text > DIV > DIV > BODY > HTML > #document +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification +EDITING DELEGATE: shouldInsertText:there should be a single trailing space between the '.' and the last character in this sentence replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 96 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 96 of #text > DIV > DIV > BODY > HTML > #document to 96 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 + RenderView 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 {P} at (0,0) size 784x22 + RenderText {#text} at (0,0) size 407x22 + text run at (0,0) width 407: "This tests to see if trailing spaces are lost during a copy/paste" + RenderBlock {HR} at (0,38) size 784x2 [border: (1px inset #000000)] + RenderBlock {DIV} at (0,48) size 784x30 [border: (2px solid #FFAAAA)] + RenderBlock {DIV} at (2,2) size 780x26 [border: (2px solid #AAAAFF)] + RenderText {#text} at (2,2) size 618x22 + text run at (2,2) width 618: "there should be a single trailing space between the '.' and the last character in this sentence ." +caret: position 96 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/4076267-expected.png b/LayoutTests/platform/qt/editing/pasteboard/4076267-expected.png new file mode 100644 index 000000000000..59cbcc81a905 Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/4076267-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/4076267-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4076267-expected.txt new file mode 100644 index 000000000000..9d840626d3fa --- /dev/null +++ b/LayoutTests/platform/qt/editing/pasteboard/4076267-expected.txt @@ -0,0 +1,34 @@ +EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document +EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 56 of #text > DIV > DIV > BODY > HTML > #document +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification +EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification +EDITING DELEGATE: shouldInsertText: this text should have a single leading space before it replacingDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 55 of #text > DIV > DIV > BODY > HTML > #document to 55 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 + RenderView 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 {P} at (0,0) size 784x22 + RenderText {#text} at (0,0) size 407x22 + text run at (0,0) width 407: "This tests to see if leading spaces are lost during a copy/paste" + RenderBlock {HR} at (0,38) size 784x2 [border: (1px inset #000000)] + RenderBlock {DIV} at (0,48) size 784x22 + RenderBlock {DIV} at (0,0) size 784x22 + RenderText {#text} at (0,0) size 350x22 + text run at (0,0) width 350: " this text should have a single leading space before it" +caret: position 55 of child 0 {#text} of child 1 {DIV} of child 5 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.png b/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.png new file mode 100644 index 000000000000..f1d62a1a1556 Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt index 1ac715de3858..dd63c6c89ff7 100644 --- a/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt +++ b/LayoutTests/platform/qt/editing/pasteboard/4806874-expected.txt @@ -3,16 +3,16 @@ 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 {P} at (0,0) size 784x20 - RenderText {#text} at (0,0) size 605x20 - text run at (0,0) width 273: "This tests for an infinite loop on Paste. " - text run at (273,0) width 332: "You should see 'Hello: ' and then an input field." - RenderBlock {DIV} at (0,36) size 784x28 - RenderText {#text} at (0,4) size 38x20 - text run at (0,4) width 38: "Hello" - RenderTextControl {INPUT} at (40,2) size 175x24 - RenderText {#text} at (217,4) size 4x20 - text run at (217,4) width 4: ":" -layer at (50,48) size 171x20 - RenderBlock {DIV} at (2,2) size 171x20 + RenderBlock {P} at (0,0) size 784x22 + RenderText {#text} at (0,0) size 581x22 + text run at (0,0) width 261: "This tests for an infinite loop on Paste. " + text run at (261,0) width 320: "You should see 'Hello: ' and then an input field." + RenderBlock {DIV} at (0,38) size 784x30 + RenderText {#text} at (0,4) size 35x22 + text run at (0,4) width 35: "Hello" + RenderTextControl {INPUT} at (37,2) size 166x26 + RenderText {#text} at (205,4) size 5x22 + text run at (205,4) width 5: ":" +layer at (47,50) size 162x22 + RenderBlock {DIV} at (2,2) size 162x22 caret: position 1 of child 1 {INPUT} of child 2 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.png b/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.png new file mode 100644 index 000000000000..d14cdfbde1e2 Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt index 994afeb118bb..2755148eca01 100644 --- a/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt +++ b/LayoutTests/platform/qt/editing/pasteboard/5387578-expected.txt @@ -3,21 +3,18 @@ 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 {P} at (0,0) size 784x38 - RenderText {#text} at (0,0) size 764x38 - text run at (0,0) width 379: "This tests for a crash when pasting content into a table cell. " - text run at (379,0) width 385: "The table cell has some collapsed whitespace at the end of it" - text run at (0,19) width 139: "that tickled the crash. " - text run at (139,19) width 325: "You should see 'Hello World' in the table cell below." - RenderBlock {DIV} at (0,52) size 784x29 - RenderTable {TABLE} at (0,0) size 87x29 [border: (1px outset #808080)] - RenderTableSection {TBODY} at (1,1) size 85x27 - RenderTableRow {TR} at (0,2) size 85x23 - RenderTableCell {TD} at (2,2) size 81x23 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] - RenderText {#text} at (2,2) size 49x19 - text run at (2,2) width 49: "Hello W" - RenderText {#text} at (51,2) size 24x19 - text run at (51,2) width 24: "orld" - RenderText {#text} at (75,2) size 4x19 - text run at (75,2) width 4: " " -caret: position 4 of child 1 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body + RenderBlock {P} at (0,0) size 784x44 + RenderText {#text} at (0,0) size 771x44 + text run at (0,0) width 401: "This tests for a crash when pasting content into a table cell. " + text run at (401,0) width 370: "The table cell has some collapsed whitespace at the end" + text run at (0,22) width 180: "of it that tickled the crash. " + text run at (180,22) width 350: "You should see 'Hello World' in the table cell below." + RenderBlock {DIV} at (0,60) size 784x32 + RenderTable {TABLE} at (0,0) size 93x32 [border: (1px outset #808080)] + RenderTableSection {TBODY} at (1,1) size 91x30 + RenderTableRow {TR} at (0,2) size 91x26 + RenderTableCell {TD} at (2,2) size 87x26 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1] + RenderText {#text} at (2,2) size 83x22 + text run at (2,2) width 83: "Hello World" + text run at (85,2) width 0: " \x{9}\x{9} \x{9}\x{9}" +caret: position 11 of child 0 {#text} of child 1 {TD} of child 0 {TR} of child 1 {TBODY} of child 1 {TABLE} of child 2 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.png b/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.png new file mode 100644 index 000000000000..4fd7b8ec28be Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt index d91f4cec1b2c..40f39de089e6 100644 --- a/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt +++ b/LayoutTests/platform/qt/editing/pasteboard/bad-placeholder-expected.txt @@ -2,7 +2,8 @@ EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 16 of #text > DIV > BODY > HTML > #document toDOMRange:range from 16 of #text > DIV > BODY > HTML > #document to 16 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification layer at (0,0) size 800x600 @@ -10,21 +11,20 @@ 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 {P} at (0,0) size 784x38 - RenderText {#text} at (0,0) size 761x38 - text run at (0,0) width 761: "This is a test to make sure that a placeholder, even one without our special class on it, is removed only when it has been" - text run at (0,19) width 411: "collapsed away or when it has been displaced by pasted content." - RenderBlock {P} at (0,52) size 784x38 - RenderText {#text} at (0,0) size 773x38 - text run at (0,0) width 704: "Placeholders with our special class can, through bugs in deletion, be inserted into the document unnecessarily. " - text run at (704,0) width 62: "Once that" - text run at (0,19) width 773: "happens, we don't want to make matters worse by removing them if they are acting as line breaks instead of placeholders." - RenderBlock {DIV} at (0,104) size 784x38 - RenderText {#text} at (0,0) size 28x19 - text run at (0,0) width 28: "First" - RenderText {#text} at (28,0) size 74x19 - text run at (28,0) width 74: " paragraph." - RenderBR {BR} at (102,14) size 0x0 - RenderText {#text} at (0,19) size 122x19 - text run at (0,19) width 122: "Second paragraph." -caret: position 11 of child 1 {#text} of child 4 {DIV} of body + RenderBlock {P} at (0,0) size 784x44 + RenderText {#text} at (0,0) size 764x44 + text run at (0,0) width 764: "This is a test to make sure that a placeholder, even one without our special class on it, is removed only when it has" + text run at (0,22) width 468: "been collapsed away or when it has been displaced by pasted content." + RenderBlock {P} at (0,60) size 784x66 + RenderText {#text} at (0,0) size 779x66 + text run at (0,0) width 744: "Placeholders with our special class can, through bugs in deletion, be inserted into the document unnecessarily. " + text run at (744,0) width 35: "Once" + text run at (0,22) width 758: "that happens, we don't want to make matters worse by removing them if they are acting as line breaks instead of" + text run at (0,44) width 89: "placeholders." + RenderBlock {DIV} at (0,142) size 784x44 + RenderText {#text} at (0,0) size 113x22 + text run at (0,0) width 113: "First paragraph." + RenderBR {BR} at (113,16) size 0x0 + RenderText {#text} at (0,22) size 130x22 + text run at (0,22) width 130: "Second paragraph." +caret: position 16 of child 0 {#text} of child 4 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.png b/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.png new file mode 100644 index 000000000000..9abb8e25c941 Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt index baa6032cdc9d..f8ac3c0208e5 100644 --- a/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt +++ b/LayoutTests/platform/qt/editing/pasteboard/block-wrappers-necessary-expected.txt @@ -22,80 +22,81 @@ 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 784x132 [border: (2px solid #0000FF)] - RenderBlock {DIV} at (14,14) size 756x44 - RenderText {#text} at (0,0) size 51x22 + RenderBlock {DIV} at (0,0) size 784x169 [border: (2px solid #0000FF)] + RenderBlock {DIV} at (14,14) size 756x50 + RenderText {#text} at (0,0) size 51x25 text run at (0,0) width 51: "Tests: " RenderBR {BR} at (0,0) size 0x0 - RenderText {#text} at (0,22) size 86x22 - text run at (0,22) width 86: "Bug fix for " - RenderInline {A} at (0,0) size 192x22 [color=#0000EE] - RenderText {#text} at (86,22) size 192x22 - text run at (86,22) width 192: "" - RenderText {#text} at (278,22) size 390x22 - text run at (278,22) width 390: " Erroneous spacing between lines introduced on paste" - RenderBlock (anonymous) at (14,74) size 756x44 - RenderText {#text} at (0,0) size 713x44 - text run at (0,0) width 711: "Applying block styles, like text-align, used to wrap paragraphs that needed block style changes in" - text run at (0,22) width 324: "clones of other paragraphs in the document. " - text run at (324,22) width 389: "This would almost always introduce unwanted styles." - RenderBlock {DIV} at (0,156) size 784x190 - RenderBlock {DIV} at (0,0) size 784x190 [border: (2px solid #FF0000)] - RenderBlock {CENTER} at (2,20) size 780x150 - RenderBlock {P} at (0,0) size 780x150 - RenderBlock {P} at (0,0) size 780x110 - RenderText {#text} at (2,0) size 71x22 - text run at (2,0) width 71: "This is an" - RenderText {#text} at (73,0) size 5x22 - text run at (73,0) width 5: " " - RenderInline {B} at (0,0) size 82x22 - RenderText {#text} at (78,0) size 82x22 - text run at (78,0) width 82: "interactive" - RenderText {#text} at (160,0) size 5x22 - text run at (160,0) width 5: " " - RenderText {#text} at (165,0) size 615x44 - text run at (165,0) width 612: "documentation site, so please help out by posting any useful information that you've" - text run at (777,0) width 3: " " - text run at (325,22) width 129: "had to search out." - RenderBR {BR} at (454,39) size 0x0 - RenderText {#text} at (20,44) size 110x22 - text run at (20,44) width 110: "(Adding to this" - RenderText {#text} at (130,44) size 5x22 - text run at (130,44) width 5: " " - RenderInline {A} at (0,0) size 107x22 [color=#0000EE] - RenderText {#text} at (135,44) size 107x22 - text run at (135,44) width 107: "wiki is so easy" - RenderText {#text} at (242,44) size 202x22 - text run at (242,44) width 202: ", you can't screw it up). See" - RenderText {#text} at (444,44) size 5x22 - text run at (444,44) width 5: " " - RenderInline {A} at (0,0) size 114x22 [color=#0000EE] - RenderText {#text} at (449,44) size 114x22 - text run at (449,44) width 114: "Wiki Reference" - RenderText {#text} at (563,44) size 5x22 - text run at (563,44) width 5: " " - RenderText {#text} at (568,44) size 191x22 - text run at (568,44) width 191: "for text formatting syntax." - RenderBR {BR} at (759,61) size 0x0 - RenderText {#text} at (161,66) size 278x22 - text run at (161,66) width 278: "Info for setting up your own wiki is at" - RenderText {#text} at (439,66) size 5x22 - text run at (439,66) width 5: " " - RenderInline {A} at (0,0) size 170x22 [color=#0000EE] - RenderText {#text} at (444,66) size 170x22 - text run at (444,66) width 170: "about howto.apple.com" - RenderText {#text} at (614,66) size 5x22 - text run at (614,66) width 5: "." - RenderBR {BR} at (619,83) size 0x0 - RenderText {#text} at (96,88) size 509x22 - text run at (96,88) width 509: "Check out a cool wiki editor application that helps in wiki generation:" - RenderText {#text} at (605,88) size 5x22 - text run at (605,88) width 5: " " - RenderInline {A} at (0,0) size 73x22 [color=#0000EE] - RenderText {#text} at (610,88) size 73x22 - text run at (610,88) width 73: "Wikinator" - RenderBlock {P} at (0,128) size 780x22 - RenderText {#text} at (85,0) size 610x22 - text run at (85,0) width 610: "Start browsing the topics below, or use the search field at the bottom of every page." - RenderBlock (anonymous) at (0,168) size 780x0 + RenderText {#text} at (0,25) size 89x25 + text run at (0,25) width 89: "Bug fix for " + RenderInline {A} at (0,0) size 204x25 [color=#0000EE] + RenderText {#text} at (89,25) size 204x25 + text run at (89,25) width 204: "" + RenderText {#text} at (293,25) size 415x25 + text run at (293,25) width 415: " Erroneous spacing between lines introduced on paste" + RenderBlock (anonymous) at (14,80) size 756x75 + RenderText {#text} at (0,0) size 753x75 + text run at (0,0) width 753: "Applying block styles, like text-align, used to wrap paragraphs that needed block style changes in" + text run at (0,25) width 347: "clones of other paragraphs in the document. " + text run at (347,25) width 359: "This would almost always introduce unwanted" + text run at (0,50) width 47: "styles." + RenderBlock {DIV} at (0,193) size 784x208 + RenderBlock {DIV} at (0,0) size 784x208 [border: (2px solid #FF0000)] + RenderBlock {CENTER} at (2,20) size 780x168 + RenderBlock {P} at (0,0) size 780x168 + RenderBlock {P} at (0,0) size 780x125 + RenderText {#text} at (9,0) size 76x25 + text run at (9,0) width 76: "This is an" + RenderText {#text} at (84,0) size 6x25 + text run at (84,0) width 6: " " + RenderInline {B} at (0,0) size 83x25 + RenderText {#text} at (89,0) size 83x25 + text run at (89,0) width 83: "interactive" + RenderText {#text} at (171,0) size 6x25 + text run at (171,0) width 6: " " + RenderText {#text} at (176,0) size 600x50 + text run at (176,0) width 595: "documentation site, so please help out by posting any useful information that" + text run at (770,0) width 6: " " + text run at (293,25) width 194: "you've had to search out." + RenderBR {BR} at (487,43) size 0x0 + RenderText {#text} at (1,50) size 116x25 + text run at (1,50) width 116: "(Adding to this" + RenderText {#text} at (117,50) size 5x25 + text run at (117,50) width 5: " " + RenderInline {A} at (0,0) size 109x25 [color=#0000EE] + RenderText {#text} at (122,50) size 109x25 + text run at (122,50) width 109: "wiki is so easy" + RenderText {#text} at (231,50) size 213x25 + text run at (231,50) width 213: ", you can't screw it up). See" + RenderText {#text} at (444,50) size 5x25 + text run at (444,50) width 5: " " + RenderInline {A} at (0,0) size 120x25 [color=#0000EE] + RenderText {#text} at (449,50) size 120x25 + text run at (449,50) width 120: "Wiki Reference" + RenderText {#text} at (569,50) size 5x25 + text run at (569,50) width 5: " " + RenderText {#text} at (574,50) size 205x25 + text run at (574,50) width 205: "for text formatting syntax." + RenderBR {BR} at (779,68) size 0x0 + RenderText {#text} at (148,75) size 294x25 + text run at (148,75) width 294: "Info for setting up your own wiki is at" + RenderText {#text} at (442,75) size 5x25 + text run at (442,75) width 5: " " + RenderInline {A} at (0,0) size 180x25 [color=#0000EE] + RenderText {#text} at (447,75) size 180x25 + text run at (447,75) width 180: "about howto.apple.com" + RenderText {#text} at (627,75) size 5x25 + text run at (627,75) width 5: "." + RenderBR {BR} at (632,93) size 0x0 + RenderText {#text} at (77,100) size 541x25 + text run at (77,100) width 541: "Check out a cool wiki editor application that helps in wiki generation:" + RenderText {#text} at (618,100) size 5x25 + text run at (618,100) width 5: " " + RenderInline {A} at (0,0) size 80x25 [color=#0000EE] + RenderText {#text} at (623,100) size 80x25 + text run at (623,100) width 80: "Wikinator" + RenderBlock {P} at (0,143) size 780x25 + RenderText {#text} at (67,0) size 646x25 + text run at (67,0) width 646: "Start browsing the topics below, or use the search field at the bottom of every page." + RenderBlock (anonymous) at (0,186) size 780x0 caret: position 85 of child 0 {#text} of child 1 {P} of child 1 {P} of child 1 {CENTER} of child 1 {DIV} of child 3 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.png b/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.png new file mode 100644 index 000000000000..7c862d22907c Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt index b95aa5065995..7098d9690976 100644 --- a/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt +++ b/LayoutTests/platform/qt/editing/pasteboard/input-field-1-expected.txt @@ -1,8 +1,9 @@ EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification -EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE +EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) 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: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 2 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE @@ -13,19 +14,19 @@ 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 784x576 - RenderBlock {P} at (0,0) size 784x18 - RenderText {#text} at (0,0) size 235x18 - text run at (0,0) width 235: "This tests Copy/Paste of a input field." - RenderBlock {DIV} at (0,34) size 784x23 - RenderTextControl {INPUT} at (2,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] - RenderTextControl {INPUT} at (131,2) size 125x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] - RenderBlock {UL} at (0,73) size 784x18 - RenderListItem {LI} at (40,0) size 744x18 - RenderListMarker at (-17,0) size 7x18: bullet - RenderText {#text} at (0,0) size 43x18 - text run at (0,0) width 43: "Passed" -layer at (13,47) size 119x13 - RenderBlock {DIV} at (3,3) size 119x13 -layer at (142,47) size 119x13 - RenderBlock {DIV} at (3,3) size 119x13 + RenderBlock {P} at (0,0) size 784x22 + RenderText {#text} at (0,0) size 250x22 + text run at (0,0) width 250: "This tests Copy/Paste of a input field." + RenderBlock {DIV} at (0,38) size 784x30 + RenderTextControl {INPUT} at (2,2) size 166x26 + RenderTextControl {INPUT} at (172,2) size 166x26 + RenderBlock {UL} at (0,84) size 784x22 + RenderListItem {LI} at (40,0) size 744x22 + RenderListMarker at (-18,0) size 7x22: bullet + RenderText {#text} at (0,0) size 46x22 + text run at (0,0) width 46: "Passed" +layer at (12,50) size 162x22 + RenderBlock {DIV} at (2,2) size 162x22 +layer at (182,50) size 162x22 + RenderBlock {DIV} at (2,2) size 162x22 caret: position 1 of child 1 {INPUT} of child 2 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.png b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.png new file mode 100644 index 000000000000..d54be56fe08c Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt index 0458c317560f..d3402518b039 100644 --- a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt +++ b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-area-expected.txt @@ -13,26 +13,27 @@ 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 (anonymous) at (0,0) size 784x19 - RenderText {#text} at (0,0) size 542x19 - text run at (0,0) width 542: "These demonstrate 11475: the '\\n's at the end of the fragment should be unrendered." - RenderBR {BR} at (542,14) size 0x0 - RenderBlock {DIV} at (0,19) size 784x38 - RenderText {#text} at (26,0) size 731x38 - text run at (26,0) width 731: "This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail " - text run at (357,19) width 69: "assertions." - RenderBlock {DIV} at (0,57) size 784x49 - RenderBlock {DIV} at (0,0) size 784x49 - RenderTextControl {TEXTAREA} at (294,2) size 184x40 [border: (1px solid #000000)] - RenderText {#text} at (480,30) size 4x19 - text run at (480,30) width 4: " " - RenderInline {SPAN} at (0,0) size 7x19 - RenderText {#text} at (484,30) size 7x19 - text run at (484,30) width 7: "x" + RenderBlock (anonymous) at (0,0) size 784x22 + RenderText {#text} at (0,0) size 569x22 + text run at (0,0) width 569: "These demonstrate 11475: the '\\n's at the end of the fragment should be unrendered." + RenderBR {BR} at (569,16) size 0x0 + RenderBlock {DIV} at (0,22) size 784x44 + RenderText {#text} at (5,0) size 778x44 + text run at (5,0) width 774: "This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail" + text run at (778,0) width 5: " " + text run at (357,22) width 70: "assertions." + RenderBlock {DIV} at (0,66) size 784x58 + RenderBlock {DIV} at (0,0) size 784x58 + RenderText {#text} at (478,36) size 4x22 + text run at (478,36) width 4: " " + RenderInline {SPAN} at (0,0) size 8x22 + RenderText {#text} at (482,36) size 8x22 + text run at (482,36) width 8: "x" RenderText {#text} at (0,0) size 0x0 - RenderBlock (anonymous) at (0,106) size 784x0 -layer at (303,68) size 182x38 - RenderBlock {DIV} at (1,1) size 182x38 - RenderText {#text} at (3,0) size 4x19 - text run at (3,0) width 4: " " + RenderBlock (anonymous) at (0,124) size 784x0 +layer at (304,76) size 180x48 + RenderTextControl {TEXTAREA} at (296,2) size 180x48 + RenderBlock {DIV} at (2,2) size 176x22 + RenderText {#text} at (0,0) size 4x22 + text run at (0,0) width 4: " " caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.png b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.png new file mode 100644 index 000000000000..6f399ecfc63a Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt index 6f8e093eb2ea..d6ba8e01a56b 100644 --- a/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt +++ b/LayoutTests/platform/qt/editing/pasteboard/nested-blocks-with-text-field-expected.txt @@ -13,24 +13,25 @@ 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 (anonymous) at (0,0) size 784x19 - RenderText {#text} at (0,0) size 542x19 - text run at (0,0) width 542: "These demonstrate 11475: the '\\n's at the end of the fragment should be unrendered." - RenderBR {BR} at (542,14) size 0x0 - RenderBlock {DIV} at (0,19) size 784x38 - RenderText {#text} at (26,0) size 731x38 - text run at (26,0) width 731: "This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail " - text run at (357,19) width 69: "assertions." - RenderBlock {DIV} at (0,57) size 784x29 - RenderBlock {DIV} at (0,0) size 784x29 - RenderTextControl {INPUT} at (302,2) size 168x25 [border: (2px inset #000000)] - RenderText {#text} at (472,5) size 4x19 - text run at (472,5) width 4: " " - RenderInline {SPAN} at (0,0) size 7x19 - RenderText {#text} at (476,5) size 7x19 - text run at (476,5) width 7: "x" + RenderBlock (anonymous) at (0,0) size 784x22 + RenderText {#text} at (0,0) size 569x22 + text run at (0,0) width 569: "These demonstrate 11475: the '\\n's at the end of the fragment should be unrendered." + RenderBR {BR} at (569,16) size 0x0 + RenderBlock {DIV} at (0,22) size 784x44 + RenderText {#text} at (5,0) size 778x44 + text run at (5,0) width 774: "This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail" + text run at (778,0) width 5: " " + text run at (357,22) width 70: "assertions." + RenderBlock {DIV} at (0,66) size 784x30 + RenderBlock {DIV} at (0,0) size 784x30 + RenderTextControl {INPUT} at (303,2) size 166x26 + RenderText {#text} at (471,4) size 4x22 + text run at (471,4) width 4: " " + RenderInline {SPAN} at (0,0) size 8x22 + RenderText {#text} at (475,4) size 8x22 + text run at (475,4) width 8: "x" RenderText {#text} at (0,0) size 0x0 - RenderBlock (anonymous) at (0,86) size 784x0 -layer at (313,70) size 162x19 - RenderBlock {DIV} at (3,3) size 162x19 + RenderBlock (anonymous) at (0,96) size 784x0 +layer at (313,78) size 162x22 + RenderBlock {DIV} at (2,2) size 162x22 caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-008-expected.png b/LayoutTests/platform/qt/editing/pasteboard/paste-text-008-expected.png new file mode 100644 index 000000000000..ed29750e9ba7 Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/paste-text-008-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-008-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-008-expected.txt new file mode 100644 index 000000000000..bf73844522c9 --- /dev/null +++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-008-expected.txt @@ -0,0 +1,137 @@ +EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 of BODY > HTML > #document +EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification +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: 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: 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: 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 12 of #text > DIV > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document toDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification +EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted +EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document toDOMRange:range from 20 of #text > DIV > BODY > HTML > #document to 20 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification +layer at (0,0) size 800x600 + RenderView 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 784x155 [border: (2px solid #FF0000)] + RenderBlock (anonymous) at (14,14) size 756x33 + RenderText {#text} at (0,0) size 366x33 + text run at (0,0) width 366: "Omitted, all the voyage of their life," + RenderBlock {DIV} at (14,47) size 756x61 [border: (2px solid #FF0000)] + RenderText {#text} at (14,14) size 120x33 + text run at (14,14) width 120: "Is bound in " + RenderText {#text} at (134,14) size 253x33 + text run at (134,14) width 253: "shallows and in miseries." + RenderBlock (anonymous) at (14,108) size 756x33 + RenderText {#text} at (0,0) size 204x33 + text run at (0,0) width 204: "Upon such a full sea" + RenderText {#text} at (204,0) size 253x33 + text run at (204,0) width 253: "shallows and in miseries." + RenderBlock (anonymous) at (0,155) size 784x0 + RenderBlock {DIV} at (0,155) size 784x61 [border: (2px solid #FF0000)] + RenderText {#text} at (14,14) size 204x33 + text run at (14,14) width 204: "Upon such a full sea" + RenderText {#text} at (218,14) size 193x33 + text run at (218,14) width 193: " are we now afloat," +caret: position 20 of child 0 {#text} of child 2 {DIV} of body diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-008-expected.png b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-008-expected.png new file mode 100644 index 000000000000..4bc119b4676b Binary files /dev/null and b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-008-expected.png differ diff --git a/LayoutTests/platform/qt/editing/pasteboard/smart-paste-008-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-008-expected.txt new file mode 100644 index 000000000000..2fc9e8de1573 --- /dev/null +++ b/LayoutTests/platform/qt/editing/pasteboard/smart-paste-008-expected.txt @@ -0,0 +1,40 @@ +EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document +EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > DIV > 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: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of #text > DIV > DIV > BODY > HTML > #document to 1 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification +EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 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 + RenderView 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 {P} at (0,0) size 784x66 + RenderText {#text} at (0,0) size 758x66 + text run at (0,0) width 425: "There was a bug in paste's smart replace whitespace handling. " + text run at (425,0) width 333: "In some cases, it used information gathered at the" + text run at (0,22) width 723: "start of the selection being pasted into to decide whether or not a space needed to be added to the end of the" + text run at (0,44) width 120: "incoming content." + RenderBlock {P} at (0,82) size 784x44 + RenderText {#text} at (0,0) size 779x44 + text run at (0,0) width 591: "A smart paste is performed into a selection starting in one block and ending in another. " + text run at (591,0) width 188: "Spaces should surround the" + text run at (0,22) width 88: "pasted word." + RenderBlock {DIV} at (0,142) size 784x22 + RenderBlock {DIV} at (0,0) size 784x22 + RenderText {#text} at (0,0) size 5x22 + text run at (0,0) width 5: "f" + RenderText {#text} at (5,0) size 25x22 + text run at (5,0) width 25: " foo" + RenderText {#text} at (30,0) size 28x22 + text run at (30,0) width 28: " bar" + RenderBlock (anonymous) at (0,22) size 784x0 +caret: position 4 of child 1 {#text} of child 0 {DIV} of child 4 {DIV} of body