Changeset 83268 in webkit
- Timestamp:
- Apr 8, 2011 12:53:11 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 28 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83267 r83268 1 2011-04-08 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Tony Chang. 4 5 dump-as-markup conversion: editing/pasteboard/5065605.html and display-block-on-spans.html 6 https://bugs.webkit.org/show_bug.cgi?id=58074 7 8 Converted 5065605.html and display-block-on-spans.html to dump-as-markup tests. 9 10 * editing/pasteboard/5065605-expected.txt: Added. 11 * editing/pasteboard/5065605.html: 12 * editing/pasteboard/display-block-on-spans-expected.txt: Added. 13 * editing/pasteboard/display-block-on-spans.html: 14 * platform/chromium-linux/editing/pasteboard/5065605-expected.checksum: Removed. 15 * platform/chromium-linux/editing/pasteboard/5065605-expected.png: Removed. 16 * platform/chromium-linux/editing/pasteboard/display-block-on-spans-expected.checksum: Removed. 17 * platform/chromium-linux/editing/pasteboard/display-block-on-spans-expected.png: Removed. 18 * platform/chromium-win/editing/pasteboard/5065605-expected.checksum: Removed. 19 * platform/chromium-win/editing/pasteboard/5065605-expected.png: Removed. 20 * platform/chromium-win/editing/pasteboard/5065605-expected.txt: Removed. 21 * platform/chromium-win/editing/pasteboard/display-block-on-spans-expected.checksum: Removed. 22 * platform/chromium-win/editing/pasteboard/display-block-on-spans-expected.png: Removed. 23 * platform/chromium-win/editing/pasteboard/display-block-on-spans-expected.txt: Removed. 24 * platform/gtk/editing/pasteboard/5065605-expected.checksum: Removed. 25 * platform/gtk/editing/pasteboard/5065605-expected.png: Removed. 26 * platform/gtk/editing/pasteboard/5065605-expected.txt: Removed. 27 * platform/gtk/editing/pasteboard/display-block-on-spans-expected.checksum: Removed. 28 * platform/gtk/editing/pasteboard/display-block-on-spans-expected.png: Removed. 29 * platform/gtk/editing/pasteboard/display-block-on-spans-expected.txt: Removed. 30 * platform/mac-leopard/editing/pasteboard/5065605-expected.checksum: Removed. 31 * platform/mac-leopard/editing/pasteboard/5065605-expected.png: Removed. 32 * platform/mac-leopard/editing/pasteboard/display-block-on-spans-expected.checksum: Removed. 33 * platform/mac-leopard/editing/pasteboard/display-block-on-spans-expected.png: Removed. 34 * platform/mac/editing/pasteboard/5065605-expected.checksum: Removed. 35 * platform/mac/editing/pasteboard/5065605-expected.png: Removed. 36 * platform/mac/editing/pasteboard/5065605-expected.txt: Removed. 37 * platform/mac/editing/pasteboard/display-block-on-spans-expected.checksum: Removed. 38 * platform/mac/editing/pasteboard/display-block-on-spans-expected.png: Removed. 39 * platform/mac/editing/pasteboard/display-block-on-spans-expected.txt: Removed. 40 * platform/qt/editing/pasteboard/5065605-expected.txt: Removed. 41 * platform/qt/editing/pasteboard/display-block-on-spans-expected.txt: Removed. 42 1 43 2011-04-08 Csaba Osztrogonác <ossy@webkit.org> 2 44 -
trunk/LayoutTests/editing/pasteboard/5065605.html
r20520 r83268 1 <p>This tests for a bug where text copied with Select All + Copy would lose its color.</p> 1 <!DOCTYPE html> 2 <html> 3 <body> 2 4 <div id="div" contenteditable="true"><br></div> 3 5 <script src="../../resources/dump-as-markup.js"></script> 4 6 <script> 5 7 var div = document.getElementById("div"); 6 8 div.focus(); 9 10 if (window.layoutTestController) 11 layoutTestController.dumpEditingCallbacks(); 7 12 8 13 document.execCommand("InsertText", false, "This text should be red."); … … 15 20 document.execCommand("InsertParagraph"); 16 21 document.execCommand("Paste"); 22 23 Markup.description('This tests for a bug where text copied with Select All + Copy would lose its color.'); 24 Markup.dump('div'); 25 17 26 </script> 27 </body> 28 </html> -
trunk/LayoutTests/editing/pasteboard/display-block-on-spans.html
r48921 r83268 1 <head> 2 <script src=../editing.js type="text/javascript"></script> 3 <script type="text/javascript"> 4 function editingTest() { 5 extendSelectionForwardByLineCommand(); 6 extendSelectionForwardByWordCommand(); 7 copyCommand(); 8 pasteCommand(); 9 } 10 </script> 11 <title>Pasting spans with display:block</title> 12 </head> 1 <!DOCTYPE html> 2 <html> 13 3 <body> 14 15 This is a testcase for the fix for <a href="https://bugs.webkit.org/show_bug.cgi?id=7904">http://bugzilla.opendarwin.org/show_bug.cgi?id=7904</a>. ReplaceSelectionCommand used to guess whether or not nodes in the fragment to be pasted were blocks. It now knows for sure. Before the fix, ReplaceSelectionCommand blew away content of the div below after copy/pasting it over itself.16 17 <hr>18 19 4 <div contenteditable id="test"> 20 5 <span style="display:block"><b>This is a paragraph.</b></span> 21 6 <span style="display:block"><b>This is another paragraph.</b></span> 22 7 </div> 8 <script src="../editing.js"></script> 9 <script src="../../resources/dump-as-markup.js"></script> 10 <script> 23 11 24 <script>runEditingTest();</script> 12 Markup.description('This is a test case for the fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7904.\n'+ 13 'ReplaceSelectionCommand used to guess whether or not nodes in the fragment to be pasted were blocks. It now knows for sure.\n'+ 14 'Before the fix, ReplaceSelectionCommand blew away content of the div below after copy/pasting it over itself.\n'+ 15 'The following two results must be visually identical except for the caret.'); 25 16 17 var test = document.getElementById('test'); 18 test.focus(); 19 window.getSelection().setPosition(test, 0); 20 21 Markup.dump(test, 'before'); 22 23 extendSelectionForwardByLineCommand(); 24 extendSelectionForwardByWordCommand(); 25 copyCommand(); 26 pasteCommand(); 27 28 Markup.dump(test, 'after'); 29 30 </script> 26 31 </body> 27 32 </html>
Note: See TracChangeset
for help on using the changeset viewer.