Changeset 87486 in webkit
- Timestamp:
- May 27, 2011 2:11:30 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 14 deleted
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87480 r87486 1 2011-05-27 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Kent Tamura. 4 5 Convert editing/pasteboard/paste-text-002.html and paste-text-003.html to dump-as-markup tests 6 https://bugs.webkit.org/show_bug.cgi?id=61614 7 8 Converted paste-text-002.html and paste-text-003.html to dump-as-markup tests. 9 Also added some descriptions to the tests. 10 11 * editing/pasteboard/paste-text-002-expected.txt: Added. 12 * editing/pasteboard/paste-text-002.html: 13 * editing/pasteboard/paste-text-003-expected.txt: Added. 14 * editing/pasteboard/paste-text-003.html: 15 * platform/chromium-linux/editing/pasteboard/paste-text-002-expected.png: Removed. 16 * platform/chromium-linux/editing/pasteboard/paste-text-003-expected.png: Removed. 17 * platform/chromium-win/editing/pasteboard/paste-text-002-expected.png: Removed. 18 * platform/chromium-win/editing/pasteboard/paste-text-002-expected.txt: Removed. 19 * platform/chromium-win/editing/pasteboard/paste-text-003-expected.png: Removed. 20 * platform/chromium-win/editing/pasteboard/paste-text-003-expected.txt: Removed. 21 * platform/gtk/editing/pasteboard/paste-text-002-expected.txt: Removed. 22 * platform/gtk/editing/pasteboard/paste-text-003-expected.txt: Removed. 23 * platform/mac/editing/pasteboard/paste-text-002-expected.png: Removed. 24 * platform/mac/editing/pasteboard/paste-text-002-expected.txt: Removed. 25 * platform/mac/editing/pasteboard/paste-text-003-expected.png: Removed. 26 * platform/mac/editing/pasteboard/paste-text-003-expected.txt: Removed. 27 * platform/qt/editing/pasteboard/paste-text-002-expected.png: Removed. 28 * platform/qt/editing/pasteboard/paste-text-002-expected.txt: Removed. 29 * platform/qt/editing/pasteboard/paste-text-003-expected.png: Removed. 30 * platform/qt/editing/pasteboard/paste-text-003-expected.txt: Removed. 31 1 32 2011-05-26 MORITA Hajime <morrita@google.com> 2 33 -
trunk/LayoutTests/editing/pasteboard/paste-text-002-expected.txt
r87485 r87486 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 10 ofBODY > HTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 9 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification … … 52 52 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 53 53 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 54 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 11 of #text> DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted54 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 55 55 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 56 56 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 57 57 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 58 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 11 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:FALSE58 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 59 59 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 60 60 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 61 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text> DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted62 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 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:FALSE61 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 62 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > DIV > BODY > HTML > #document to 11 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 63 63 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 64 64 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 65 layer at (0,0) size 800x600 66 RenderView at (0,0) size 800x600 67 layer at (0,0) size 800x600 68 RenderBlock {HTML} at (0,0) size 800x600 69 RenderBody {BODY} at (8,8) size 784x584 70 RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)] 71 RenderText {#text} at (14,14) size 63x28 72 text run at (14,14) width 63: "There " 73 RenderText {#text} at (77,14) size 285x28 74 text run at (77,14) width 285: "is a tide in the affairs of men," 75 RenderBlock {DIV} at (0,56) size 784x56 [border: (2px solid #FF0000)] 76 RenderText {#text} at (14,14) size 124x28 77 text run at (14,14) width 124: "Which taken" 78 RenderText {#text} at (138,14) size 285x28 79 text run at (138,14) width 285: "is a tide in the affairs of men," 80 RenderBlock {DIV} at (0,112) size 784x56 [border: (2px solid #FF0000)] 81 RenderText {#text} at (14,14) size 124x28 82 text run at (14,14) width 124: "Which taken" 83 RenderText {#text} at (138,14) size 310x28 84 text run at (138,14) width 310: " at the flood leads on to fortune." 85 RenderBlock {DIV} at (0,168) size 784x56 [border: (2px solid #FF0000)] 86 RenderText {#text} at (14,14) size 351x28 87 text run at (14,14) width 351: "Omitted, all the voyage of their life," 88 RenderBlock {DIV} at (0,224) size 784x56 [border: (2px solid #FF0000)] 89 RenderText {#text} at (14,14) size 357x28 90 text run at (14,14) width 357: "Is bound in shallows and in miseries." 91 caret: position 11 of child 0 {#text} of child 3 {DIV} of body 65 This tests copy and pastes "is a tide in the affairs of men,\nWhich taken" twice. 66 67 There is a tide in the affairs of men, 68 Which takenis a tide in the affairs of men, 69 Which taken at the flood leads on to fortune. 70 Omitted, all the voyage of their life, 71 Is bound in shallows and in miseries. 72 execCopyCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div> <div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div> 73 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div> 74 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,</div><div class="editing">Which takenis a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div> <div class="editing">Omitted, all the voyage of their life,</div> <div class="editing">Is bound in shallows and in miseries.</div> -
trunk/LayoutTests/editing/pasteboard/paste-text-002.html
r11995 r87486 1 <!DOCTYPE html> 1 2 <html> 2 3 <head> 3 4 4 <style> 5 5 .editing { … … 9 9 } 10 10 </style> 11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> 12 11 </head> 12 <body> 13 <p>This tests copy and pastes "is a tide in the affairs of men,\nWhich taken" twice.</p> 14 <div id="root" contenteditable> 15 <div id="test" class="editing">There is a tide in the affairs of men,</div> 16 <div class="editing">Which taken at the flood leads on to fortune.</div> 17 <div class="editing">Omitted, all the voyage of their life,</div> 18 <div class="editing">Is bound in shallows and in miseries.</div> 19 </div> 20 <script src="../editing.js"></script> 13 21 <script> 14 22 … … 23 31 } 24 32 33 runDumpAsTextEditingTest(true); 25 34 </script> 26 27 <title>Editing Test</title>28 </head>29 <body contenteditable id="root">30 <div id="test" class="editing">There is a tide in the affairs of men,</div>31 <div class="editing">Which taken at the flood leads on to fortune.</div>32 <div class="editing">Omitted, all the voyage of their life,</div>33 <div class="editing">Is bound in shallows and in miseries.</div>34 35 <script>36 runEditingTest();37 </script>38 39 35 </body> 40 36 </html> -
trunk/LayoutTests/editing/pasteboard/paste-text-003-expected.txt
r87485 r87486 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 ofBODY > HTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification … … 94 94 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 95 95 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 96 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 7 of #text> DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted96 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 97 97 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 98 98 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 99 99 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 100 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text> DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE100 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 101 101 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 102 102 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 103 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text> DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted104 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text> DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE103 EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted 104 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 105 105 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 106 106 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 107 layer at (0,0) size 800x600 108 RenderView at (0,0) size 800x600 109 layer at (0,0) size 800x600 110 RenderBlock {HTML} at (0,0) size 800x600 111 RenderBody {BODY} at (8,8) size 784x584 112 RenderBlock {DIV} at (0,0) size 784x364 [border: (2px solid #FF0000)] 113 RenderBlock (anonymous) at (14,14) size 756x28 114 RenderText {#text} at (0,0) size 63x28 115 text run at (0,0) width 63: "There " 116 RenderText {#text} at (63,0) size 285x28 117 text run at (63,0) width 285: "is a tide in the affairs of men," 118 RenderBlock {DIV} at (14,42) size 756x56 [border: (2px solid #FF0000)] 119 RenderText {#text} at (14,14) size 434x28 120 text run at (14,14) width 434: "Which taken at the flood leads on to fortune." 121 RenderBlock {DIV} at (14,98) size 756x252 [border: (2px solid #FF0000)] 122 RenderBlock (anonymous) at (14,14) size 728x0 123 RenderBlock {DIV} at (14,14) size 728x56 [border: (2px solid #FF0000)] 124 RenderText {#text} at (14,14) size 80x28 125 text run at (14,14) width 80: "Omitted" 126 RenderText {#text} at (94,14) size 285x28 127 text run at (94,14) width 285: "is a tide in the affairs of men," 128 RenderBlock (anonymous) at (14,70) size 728x0 129 RenderBlock {DIV} at (14,70) size 728x56 [border: (2px solid #FF0000)] 130 RenderText {#text} at (14,14) size 434x28 131 text run at (14,14) width 434: "Which taken at the flood leads on to fortune." 132 RenderBlock {DIV} at (14,126) size 728x112 [border: (2px solid #FF0000)] 133 RenderBlock (anonymous) at (14,14) size 700x28 134 RenderText {#text} at (0,0) size 80x28 135 text run at (0,0) width 80: "Omitted" 136 RenderText {#text} at (80,0) size 271x28 137 text run at (80,0) width 271: ", all the voyage of their life," 138 RenderBlock {DIV} at (14,42) size 700x56 [border: (2px solid #FF0000)] 139 RenderText {#text} at (14,14) size 357x28 140 text run at (14,14) width 357: "Is bound in shallows and in miseries." 141 caret: position 7 of child 0 {#text} of child 2 {DIV} of child 3 {DIV} of child 1 {DIV} of body 107 This test copies and pastes "is a tide in the affairs of men,\nWhich taken at the flood leads on to fortune.\nOmitted" twice. 108 109 There is a tide in the affairs of men, 110 Which taken at the flood leads on to fortune. 111 Omittedis a tide in the affairs of men, 112 Which taken at the flood leads on to fortune. 113 Omitted, all the voyage of their life, 114 Is bound in shallows and in miseries. 115 execCopyCommand: <div id="test" class="editing">There is a tide in the affairs of men, <div class="editing">Which taken at the flood leads on to fortune. <div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div> 116 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,<div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing"><div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div> 117 execPasteCommand: <div id="test" class="editing">There is a tide in the affairs of men,<div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing"><div class="editing">Omittedis a tide in the affairs of men,</div><div class="editing">Which taken at the flood leads on to fortune.</div><div class="editing">Omitted, all the voyage of their life, <div class="editing">Is bound in shallows and in miseries. </div> </div> </div> </div> -
trunk/LayoutTests/editing/pasteboard/paste-text-003.html
r11995 r87486 1 <!DOCTYPE html> 1 2 <html> 2 3 <head> 3 4 <script src="../../../resources/dump-as-markup.js"></script> 4 5 <style> 5 6 .editing { … … 9 10 } 10 11 </style> 11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> 12 12 </head> 13 <body> 14 <p>This test copies and pastes "is a tide in the affairs of men,\nWhich taken at the flood leads on to fortune.\nOmitted" twice.</p> 15 <div contenteditable id="root"> 16 <div id="test" class="editing">There is a tide in the affairs of men, 17 <div class="editing">Which taken at the flood leads on to fortune. 18 <div class="editing">Omitted, all the voyage of their life, 19 <div class="editing">Is bound in shallows and in miseries. 20 </div> 21 </div> 22 </div> 23 </div> 24 </div> 25 <script src="../editing.js"></script> 13 26 <script> 14 27 … … 23 36 } 24 37 38 runDumpAsTextEditingTest(true); 25 39 </script> 26 27 <title>Editing Test</title>28 </head>29 <body contenteditable id="root">30 <div id="test" class="editing">There is a tide in the affairs of men,31 <div class="editing">Which taken at the flood leads on to fortune.32 <div class="editing">Omitted, all the voyage of their life,33 <div class="editing">Is bound in shallows and in miseries.34 </div>35 </div>36 </div>37 </div>38 39 <script>40 runEditingTest();41 </script>42 43 40 </body> 44 41 </html>
Note: See TracChangeset
for help on using the changeset viewer.