Changeset 70031 in webkit
- Timestamp:
- Oct 18, 2010 11:34:20 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 22 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r70027 r70031 1 2010-10-18 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Kent Tamura. 4 5 dump-as-markup conversion: editing/execCommand/remove-formatting.html and remove-formatting-2.html 6 https://bugs.webkit.org/show_bug.cgi?id=47792 7 8 Converted editing/execCommand/remove-formatting.html and remove-formatting-2.html to dump-as-markup tests. 9 10 * editing/execCommand/remove-formatting-2-expected.txt: Added. 11 * editing/execCommand/remove-formatting-2.html: 12 * editing/execCommand/remove-formatting-expected.txt: Added. 13 * editing/execCommand/remove-formatting.html: 14 * platform/chromium-linux/editing/execCommand/remove-formatting-2-expected.checksum: Removed. 15 * platform/chromium-linux/editing/execCommand/remove-formatting-2-expected.png: Removed. 16 * platform/chromium-linux/editing/execCommand/remove-formatting-expected.checksum: Removed. 17 * platform/chromium-linux/editing/execCommand/remove-formatting-expected.png: Removed. 18 * platform/chromium-win/editing/execCommand/remove-formatting-2-expected.checksum: Removed. 19 * platform/chromium-win/editing/execCommand/remove-formatting-2-expected.png: Removed. 20 * platform/chromium-win/editing/execCommand/remove-formatting-2-expected.txt: Removed. 21 * platform/chromium-win/editing/execCommand/remove-formatting-expected.checksum: Removed. 22 * platform/chromium-win/editing/execCommand/remove-formatting-expected.png: Removed. 23 * platform/chromium-win/editing/execCommand/remove-formatting-expected.txt: Removed. 24 * platform/mac-leopard/editing/execCommand/remove-formatting-2-expected.checksum: Removed. 25 * platform/mac-leopard/editing/execCommand/remove-formatting-2-expected.png: Removed. 26 * platform/mac-leopard/editing/execCommand/remove-formatting-expected.checksum: Removed. 27 * platform/mac-leopard/editing/execCommand/remove-formatting-expected.png: Removed. 28 * platform/mac/editing/execCommand/remove-formatting-2-expected.checksum: Removed. 29 * platform/mac/editing/execCommand/remove-formatting-2-expected.png: Removed. 30 * platform/mac/editing/execCommand/remove-formatting-2-expected.txt: Removed. 31 * platform/mac/editing/execCommand/remove-formatting-expected.checksum: Removed. 32 * platform/mac/editing/execCommand/remove-formatting-expected.png: Removed. 33 * platform/mac/editing/execCommand/remove-formatting-expected.txt: Removed. 34 * platform/qt/editing/execCommand/remove-formatting-2-expected.txt: Removed. 35 * platform/qt/editing/execCommand/remove-formatting-expected.txt: Removed. 36 1 37 2010-10-18 Kent Tamura <tkent@chromium.org> 2 38 -
trunk/LayoutTests/editing/execCommand/remove-formatting-2.html
r17562 r70031 1 <!DOCTYPE html> 2 <html> 3 <body> 4 <script src="../../resources/dump-as-markup.js"></script> 5 <div id="div" contenteditable="true"><b>This</b> text should look the same as the text above.</div> 1 6 <script> 7 2 8 if (window.layoutTestController) 3 layoutTestController.dumpEditingCallbacks(); 4 </script> 5 <p>This tests that RemoveFormat not only removes style from the selected part of the DOM, but that it also applies the document default style to the selection if that's necessary in order to leave the selected text unstyled.</p> 6 <div id="div" contenteditable="true"><b>This</b> text should look the same as the text above.</div> 9 layoutTestController.dumpEditingCallbacks(); 7 10 8 <script>9 11 var sel = window.getSelection(); 10 12 var div = document.getElementById("div"); … … 14 16 sel.modify("extend", "forward", "word"); 15 17 document.execCommand("RemoveFormat"); 18 19 Markup.description("This tests that RemoveFormat not only removes style from the selected part of the DOM, but that it also applies the document default style to the selection if that's necessary in order to leave the selected text unstyled."); 20 Markup.dump(div); 21 16 22 </script> 23 </body> 24 </html> -
trunk/LayoutTests/editing/execCommand/remove-formatting.html
r19991 r70031 1 <script> 2 if (window.layoutTestController) 3 layoutTestController.dumpEditingCallbacks(); 4 </script> 5 <p>This is a test for execCommand("RemoveFormat"). <b>It demonstrates a bug: everything in the editable region below should be selected, as everything was selected before Remove Format was performed.</b></p> 1 <!DOCTYPE html> 2 <html> 3 <body> 4 <script src="../../resources/dump-as-markup.js"></script> 6 5 <div id="test" contenteditable="true"> 7 6 <b>foo</b><a href="http://www.google.com/">bar</a><i>baz</i><br> … … 9 8 <u>foo</u>bar<span style="text-decoration:line-through">baz</span><br> 10 9 </div> 11 < ul id="console"></ul>10 <pre id="console"></pre> 12 11 <script> 12 13 if (window.layoutTestController) 14 layoutTestController.dumpEditingCallbacks(); 15 13 16 function log(message) { 14 17 var console = document.getElementById("console"); 15 var li = document.createElement("li"); 16 var text = document.createTextNode(message); 17 18 console.appendChild(li); 19 li.appendChild(text); 18 console.innerHTML += message + '\n'; 20 19 } 20 21 21 var e = document.getElementById("test"); 22 22 var s = window.getSelection(); … … 32 32 if (!document.execCommand("RemoveFormat")) 33 33 log("Failure: execCommand('RemoveFormat') returned false."); 34 35 Markup.description('This is a test for execCommand("RemoveFormat"). It demonstrates a bug: everything in the editable region below should be selected, as everything was selected before Remove Format was performed.'); 36 Markup.dump(e, 'markup'); 37 Markup.dump('console', 'console'); 38 34 39 </script> 40 </body> 41 </html>
Note: See TracChangeset
for help on using the changeset viewer.