LayoutTests/ChangeLog

 12011-05-12 Chang Shu <cshu@webkit.org>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 Rebaseline editing/inserting tests that work
 6 https://bugs.webkit.org/show_bug.cgi?id=60702
 7
 8 * platform/qt/Skipped:
 9 * platform/qt/editing/inserting/4278698-expected.png: Added.
 10 * platform/qt/editing/inserting/4278698-expected.txt:
 11 * platform/qt/editing/inserting/editable-html-element-expected.png: Added.
 12 * platform/qt/editing/inserting/editable-html-element-expected.txt:
 13 * platform/qt/editing/inserting/editing-empty-divs-expected.png: Added.
 14 * platform/qt/editing/inserting/editing-empty-divs-expected.txt:
 15 * platform/qt/editing/inserting/insert-div-023-expected.png: Added.
 16 * platform/qt/editing/inserting/insert-div-023-expected.txt:
 17 * platform/qt/editing/inserting/multiple-lines-selected-expected.png: Added.
 18 * platform/qt/editing/inserting/multiple-lines-selected-expected.txt: Added.
 19
1202011-05-12 Anton Muhin <antonnm@chromium.org>
221
322 Unreviewed.
86350

LayoutTests/platform/qt/Skipped

@@editing/inserting/caret-position.html
327327fast/dom/tab-in-right-alignment.html
328328svg/text/caret-in-svg-text.xhtml
329329
330 # ---- to be reviewed
331 editing/inserting/4278698.html
332 editing/inserting/editable-html-element.html
333 editing/inserting/editing-empty-divs.html
334 editing/inserting/insert-div-023.html
335 editing/inserting/multiple-lines-selected.html
336330editing/inserting/5994480-2.html
 331editing/inserting/typing-at-end-of-line.html
337332
338333# http://bugreports.qt.nokia.com/browse/QTBUG-15566
339334http/tests/xmlhttprequest/basic-auth-nouser.html
86350

LayoutTests/platform/qt/editing/inserting/4278698-expected.txt

@@EDITING DELEGATE: webViewDidBeginEditing
33EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
44EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
55EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > PRE > DIV > BODY > HTML > #document to 2 of #text > PRE > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > PRE > DIV > BODY > HTML > #document to 3 of #text > PRE > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 6EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 7EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > PRE > DIV > BODY > HTML > #document to 3 of #text > PRE > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > PRE > DIV > BODY > HTML > #document to 3 of #text > PRE > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
78EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
89EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
910layer at (0,0) size 800x600

@@layer at (0,0) size 800x600
1112layer at (0,0) size 800x600
1213 RenderBlock {HTML} at (0,0) size 800x600
1314 RenderBody {BODY} at (8,8) size 784x584
14  RenderBlock {P} at (0,0) size 784x38
15  RenderText {#text} at (0,0) size 780x38
16  text run at (0,0) width 780: "This tests to see if inserting a space inside normal whitespace inside of a whitespace:pre element will collapse other spaces"
17  text run at (0,19) width 91: "surrounding it."
18  RenderBlock {P} at (0,52) size 784x19
19  RenderText {#text} at (0,0) size 441x19
20  text run at (0,0) width 441: "If successful, you should see 'a' followed by 10 spaces followed by 'b'."
21  RenderBlock {HR} at (0,85) size 784x2 [border: (1px inset #000000)]
22  RenderBlock {DIV} at (0,94) size 784x27 [border: (2px solid #FFAAAA)]
23  RenderBlock {PRE} at (2,2) size 780x23 [border: (2px solid #AAAAFF)]
24  RenderText {#text} at (2,3) size 96x17
25  text run at (2,3) width 96: "a b"
 15 RenderBlock {P} at (0,0) size 784x44
 16 RenderText {#text} at (0,0) size 766x44
 17 text run at (0,0) width 766: "This tests to see if inserting a space inside normal whitespace inside of a whitespace:pre element will collapse other"
 18 text run at (0,22) width 149: "spaces surrounding it."
 19 RenderBlock {P} at (0,60) size 784x22
 20 RenderText {#text} at (0,0) size 463x22
 21 text run at (0,0) width 463: "If successful, you should see 'a' followed by 10 spaces followed by 'b'."
 22 RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
 23 RenderBlock {DIV} at (0,108) size 784x25 [border: (2px solid #FFAAAA)]
 24 RenderBlock {PRE} at (2,2) size 780x21 [border: (2px solid #AAAAFF)]
 25 RenderText {#text} at (2,2) size 54x17
 26 text run at (2,2) width 54: "a b"
2627caret: position 3 of child 0 {#text} of child 1 {PRE} of child 7 {DIV} of body
86350

LayoutTests/platform/qt/editing/inserting/editable-html-element-expected.txt

@@layer at (0,0) size 800x600
1616layer at (0,0) size 800x600
1717 RenderBlock {HTML} at (0,0) size 800x600
1818 RenderBody {BODY} at (8,8) size 784x584
19  RenderBlock (anonymous) at (0,0) size 784x57
20  RenderText {#text} at (0,0) size 784x57
21  text run at (0,0) width 781: "This tests to make sure that when the enclosing block is the body element, and when the html element is editable, inserting"
22  text run at (781,0) width 3: " "
23  text run at (0,19) width 778: "a paragraph separator doesn't split the body (inserting a paragraph separator usually splits/clones the enclosing block flow "
24  text run at (0,38) width 60: "element)."
25  RenderBlock {DIV} at (0,57) size 784x19
26  RenderBR {BR} at (0,0) size 0x19
 19 RenderBlock (anonymous) at (0,0) size 784x66
 20 RenderText {#text} at (0,0) size 757x66
 21 text run at (0,0) width 757: "This tests to make sure that when the enclosing block is the body element, and when the html element is editable,"
 22 text run at (0,22) width 750: "inserting a paragraph separator doesn't split the body (inserting a paragraph separator usually splits/clones the"
 23 text run at (750,22) width 4: " "
 24 text run at (0,44) width 201: "enclosing block flow element)."
 25 RenderText {#text} at (0,0) size 0x0
 26 RenderBlock {DIV} at (0,66) size 784x22
 27 RenderBR {BR} at (0,0) size 0x22
2728caret: position 0 of child 0 {BR} of child 2 {DIV} of body
86350

LayoutTests/platform/qt/editing/inserting/editing-empty-divs-expected.txt

11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
33EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 4EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 5EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 6EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 7EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
48EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
59EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
610EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification

@@layer at (0,0) size 800x600
3943layer at (0,0) size 800x600
4044 RenderBlock {HTML} at (0,0) size 800x600
4145 RenderBody {BODY} at (8,8) size 784x584
42  RenderBlock {P} at (0,0) size 784x38
43  RenderText {#text} at (0,0) size 770x38
44  text run at (0,0) width 562: "This tests the ability to start editing in blocks that are visible, but have little or no content. "
45  text run at (562,0) width 208: "Each of the divs below should be"
46  text run at (0,19) width 141: "able to accept a caret."
47  RenderBlock {P} at (0,52) size 784x19
48  RenderText {#text} at (0,0) size 176x19
49  text run at (0,0) width 176: "This div contains some text."
50  RenderBlock {DIV} at (0,85) size 707x22 [border: (1px dotted #0000FF)]
51  RenderText {#text} at (1,1) size 37x19
52  text run at (1,1) width 37: "chello"
53  RenderBlock {P} at (0,121) size 784x19
54  RenderText {#text} at (0,0) size 182x19
55  text run at (0,0) width 182: "This div is completely empty."
56  RenderBlock {DIV} at (0,154) size 707x22 [border: (1px dotted #0000FF)]
57  RenderText {#text} at (1,1) size 7x19
 46 RenderBlock {P} at (0,0) size 784x44
 47 RenderText {#text} at (0,0) size 757x44
 48 text run at (0,0) width 605: "This tests the ability to start editing in blocks that are visible, but have little or no content. "
 49 text run at (605,0) width 152: "Each of the divs below"
 50 text run at (0,22) width 215: "should be able to accept a caret."
 51 RenderBlock {P} at (0,60) size 784x22
 52 RenderText {#text} at (0,0) size 186x22
 53 text run at (0,0) width 186: "This div contains some text."
 54 RenderBlock {DIV} at (0,98) size 707x24 [border: (1px dotted #0000FF)]
 55 RenderText {#text} at (1,1) size 39x22
 56 text run at (1,1) width 39: "chello"
 57 RenderBlock {P} at (0,138) size 784x22
 58 RenderText {#text} at (0,0) size 195x22
 59 text run at (0,0) width 195: "This div is completely empty."
 60 RenderBlock {DIV} at (0,176) size 707x24 [border: (1px dotted #0000FF)]
 61 RenderText {#text} at (1,1) size 7x22
5862 text run at (1,1) width 7: "c"
59  RenderBlock {P} at (0,190) size 784x19
60  RenderText {#text} at (0,0) size 343x19
61  text run at (0,0) width 343: "This div contains some collapsable whitespace (a '\\n')."
62  RenderBlock {DIV} at (0,223) size 707x22 [border: (1px dotted #0000FF)]
63  RenderText {#text} at (1,1) size 7x19
 63 RenderBlock {P} at (0,216) size 784x22
 64 RenderText {#text} at (0,0) size 360x22
 65 text run at (0,0) width 360: "This div contains some collapsable whitespace (a '\\n')."
 66 RenderBlock {DIV} at (0,254) size 707x24 [border: (1px dotted #0000FF)]
 67 RenderText {#text} at (1,1) size 7x22
6468 text run at (1,1) width 7: "c"
65  RenderBlock {P} at (0,259) size 784x19
66  RenderText {#text} at (0,0) size 233x19
67  text run at (0,0) width 233: "This div contains a self-closing p tag."
68  RenderBlock {DIV} at (0,292) size 707x35 [border: (1px dotted #0000FF)]
69  RenderBlock (anonymous) at (1,1) size 705x19
70  RenderText {#text} at (0,0) size 7x19
 69 RenderText {#text} at (0,0) size 0x0
 70 RenderBlock {P} at (0,294) size 784x22
 71 RenderText {#text} at (0,0) size 246x22
 72 text run at (0,0) width 246: "This div contains a self-closing p tag."
 73 RenderBlock {DIV} at (0,332) size 707x40 [border: (1px dotted #0000FF)]
 74 RenderBlock (anonymous) at (1,1) size 705x22
 75 RenderText {#text} at (0,0) size 7x22
7176 text run at (0,0) width 7: "c"
72  RenderBlock {P} at (1,34) size 705x0
73  RenderBlock {P} at (0,341) size 784x19
74  RenderText {#text} at (0,0) size 726x19
75  text run at (0,0) width 726: "This div contains a self-closing p tag and some collapsable whitespace (two '\\n's before and after the self closing p."
76  RenderBlock {DIV} at (0,374) size 707x35 [border: (1px dotted #0000FF)]
77  RenderBlock (anonymous) at (1,1) size 705x19
78  RenderText {#text} at (0,0) size 7x19
 77 RenderBlock {P} at (1,39) size 705x0
 78 RenderBlock {P} at (0,388) size 784x22
 79 RenderText {#text} at (0,0) size 762x22
 80 text run at (0,0) width 762: "This div contains a self-closing p tag and some collapsable whitespace (two '\\n's before and after the self closing p."
 81 RenderBlock {DIV} at (0,426) size 707x40 [border: (1px dotted #0000FF)]
 82 RenderBlock (anonymous) at (1,1) size 705x22
 83 RenderText {#text} at (0,0) size 7x22
7984 text run at (0,0) width 7: "c"
80  RenderBlock {P} at (1,34) size 705x0
 85 RenderText {#text} at (0,0) size 0x0
 86 RenderBlock {P} at (1,39) size 705x0
8187caret: position 1 of child 0 {#text} of child 21 {DIV} of body
86350

LayoutTests/platform/qt/editing/inserting/insert-div-023-expected.txt

@@EDITING DELEGATE: webViewDidChangeSelect
2525EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of #text > B > P > BODY > HTML > #document to 1 of #text > B > P > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
2626EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
2727EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
28 layer at (0,0) size 800x731
29  RenderView at (0,0) size 800x600
30 layer at (0,0) size 800x731
31  RenderBlock {HTML} at (0,0) size 800x731
32  RenderBody {BODY} at (8,8) size 784x699
33  RenderBlock (anonymous) at (0,0) size 784x96
34  RenderText {#text} at (0,0) size 766x63
35  text run at (0,0) width 766: "Test inserting paragraphs and managing typing style correctly: \"x\" under "
36  text run at (0,32) width 419: "\"line 2\" should be bold. Fix for this bug: "
37  RenderInline {A} at (0,0) size 274x31 [color=#0000EE]
38  RenderText {#text} at (419,32) size 274x31
39  text run at (419,32) width 274: "<rdar://problem/3939523>"
40  RenderText {#text} at (693,32) size 784x63
41  text run at (693,32) width 90: " in some"
42  text run at (783,32) width 1: " "
43  text run at (0,64) width 661: "cases, text does not retain style info after pressing return twice"
44  RenderBlock {DIV} at (0,96) size 784x12
45  RenderBlock {P} at (0,132) size 784x60 [border: (2px solid #0000FF)]
46  RenderText {#text} at (14,14) size 56x31
 28layer at (0,0) size 784x738
 29 RenderView at (0,0) size 784x600
 30layer at (0,0) size 784x738
 31 RenderBlock {HTML} at (0,0) size 784x738
 32 RenderBody {BODY} at (8,8) size 768x706
 33 RenderBlock (anonymous) at (0,0) size 768x99
 34 RenderText {#text} at (0,0) size 765x66
 35 text run at (0,0) width 759: "Test inserting paragraphs and managing typing style correctly: \"x\" under"
 36 text run at (759,0) width 6: " "
 37 text run at (0,33) width 420: "\"line 2\" should be bold. Fix for this bug: "
 38 RenderInline {A} at (0,0) size 275x33 [color=#0000EE]
 39 RenderText {#text} at (420,33) size 275x33
 40 text run at (420,33) width 275: "<rdar://problem/3939523>"
 41 RenderText {#text} at (695,33) size 727x66
 42 text run at (695,33) width 26: " in"
 43 text run at (721,33) width 6: " "
 44 text run at (0,66) width 698: "some cases, text does not retain style info after pressing return twice"
 45 RenderBlock {DIV} at (0,99) size 768x12
 46 RenderBlock {P} at (0,135) size 768x61 [border: (2px solid #0000FF)]
 47 RenderText {#text} at (14,14) size 56x33
4748 text run at (14,14) width 56: "line 1"
48  RenderBlock {P} at (0,216) size 784x60 [border: (2px solid #0000FF)]
49  RenderBR {BR} at (14,14) size 0x31 [bgcolor=#008000]
50  RenderBlock {P} at (0,300) size 784x61 [border: (2px solid #0000FF)]
51  RenderInline {B} at (0,0) size 62x33
52  RenderText {#text} at (14,14) size 62x33
53  text run at (14,14) width 62: "line 2"
54  RenderBlock {P} at (0,385) size 784x61 [border: (2px solid #0000FF)]
 49 RenderBlock {P} at (0,220) size 768x61 [border: (2px solid #0000FF)]
 50 RenderBR {BR} at (14,14) size 0x33 [bgcolor=#008000]
 51 RenderBlock {P} at (0,305) size 768x61 [border: (2px solid #0000FF)]
 52 RenderInline {B} at (0,0) size 56x33
 53 RenderText {#text} at (14,14) size 56x33
 54 text run at (14,14) width 56: "line 2"
 55 RenderBlock {P} at (0,390) size 768x61 [border: (2px solid #0000FF)]
5556 RenderInline {B} at (0,0) size 0x33
5657 RenderBR {BR} at (14,14) size 0x33 [bgcolor=#008000]
57  RenderBlock {P} at (0,470) size 784x61 [border: (2px solid #0000FF)]
58  RenderInline {B} at (0,0) size 13x33
59  RenderText {#text} at (14,14) size 13x33
60  text run at (14,14) width 13: "x"
61  RenderBlock {P} at (0,555) size 784x60 [border: (2px solid #0000FF)]
62  RenderBR {BR} at (14,14) size 0x31 [bgcolor=#008000]
63  RenderBlock {P} at (0,639) size 784x60 [border: (2px solid #0000FF)]
64  RenderText {#text} at (14,14) size 56x31
 58 RenderBlock {P} at (0,475) size 768x61 [border: (2px solid #0000FF)]
 59 RenderInline {B} at (0,0) size 12x33
 60 RenderText {#text} at (14,14) size 12x33
 61 text run at (14,14) width 12: "x"
 62 RenderBlock {P} at (0,560) size 768x61 [border: (2px solid #0000FF)]
 63 RenderBR {BR} at (14,14) size 0x33 [bgcolor=#008000]
 64 RenderBlock {P} at (0,645) size 768x61 [border: (2px solid #0000FF)]
 65 RenderText {#text} at (14,14) size 56x33
6566 text run at (14,14) width 56: "line 3"
6667caret: position 1 of child 0 {#text} of child 0 {B} of child 11 {P} of body
86350

LayoutTests/platform/qt/editing/inserting/multiple-lines-selected-expected.txt

 1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
 2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
 3EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 4EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 5EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 6EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 7EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 8EDITING 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
 9EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
 10EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
 11layer at (0,0) size 800x600
 12 RenderView at (0,0) size 800x600
 13layer at (0,0) size 800x600
 14 RenderBlock {HTML} at (0,0) size 800x600
 15 RenderBody {BODY} at (8,8) size 784x584
 16 RenderBlock {P} at (0,0) size 784x44
 17 RenderText {#text} at (0,0) size 776x44
 18 text run at (0,0) width 610: "This tests inserting a paragraph separator into a selection that spans multiple paragraphs. "
 19 text run at (610,0) width 166: "'ar' should be on the line"
 20 text run at (0,22) width 336: "after 'f' and the caret should be just before the 'a'."
 21 RenderBlock {DIV} at (0,60) size 784x44
 22 RenderBlock {DIV} at (0,0) size 784x22
 23 RenderText {#text} at (0,0) size 5x22
 24 text run at (0,0) width 5: "f"
 25 RenderBlock {DIV} at (0,22) size 784x22
 26 RenderText {#text} at (0,0) size 15x22
 27 text run at (0,0) width 15: "ar"
 28caret: position 0 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
0

LayoutTests/platform/qt/editing/inserting/4278698-expected.png

a714994cf1af5ecc4e5d5c4d1cc30c33

LayoutTests/platform/qt/editing/inserting/editable-html-element-expected.png

bccb5fcbb847179dea6c740f4091c172

LayoutTests/platform/qt/editing/inserting/editing-empty-divs-expected.png

168092c4e0e4d0dd84e34cc273058e0e

LayoutTests/platform/qt/editing/inserting/insert-div-023-expected.png

aa019eef5a5f547d4e352f387a3326fb

LayoutTests/platform/qt/editing/inserting/multiple-lines-selected-expected.png

f50aba36c13ff8505e579ee594371a79