Changeset 70031 in webkit


Ignore:
Timestamp:
Oct 18, 2010 11:34:20 PM (14 years ago)
Author:
rniwa@webkit.org
Message:

2010-10-18 Ryosuke Niwa <rniwa@webkit.org>

Reviewed by Kent Tamura.

dump-as-markup conversion: editing/execCommand/remove-formatting.html and remove-formatting-2.html
https://bugs.webkit.org/show_bug.cgi?id=47792

Converted editing/execCommand/remove-formatting.html and remove-formatting-2.html to dump-as-markup tests.

  • editing/execCommand/remove-formatting-2-expected.txt: Added.
  • editing/execCommand/remove-formatting-2.html:
  • editing/execCommand/remove-formatting-expected.txt: Added.
  • editing/execCommand/remove-formatting.html:
  • platform/chromium-linux/editing/execCommand/remove-formatting-2-expected.checksum: Removed.
  • platform/chromium-linux/editing/execCommand/remove-formatting-2-expected.png: Removed.
  • platform/chromium-linux/editing/execCommand/remove-formatting-expected.checksum: Removed.
  • platform/chromium-linux/editing/execCommand/remove-formatting-expected.png: Removed.
  • platform/chromium-win/editing/execCommand/remove-formatting-2-expected.checksum: Removed.
  • platform/chromium-win/editing/execCommand/remove-formatting-2-expected.png: Removed.
  • platform/chromium-win/editing/execCommand/remove-formatting-2-expected.txt: Removed.
  • platform/chromium-win/editing/execCommand/remove-formatting-expected.checksum: Removed.
  • platform/chromium-win/editing/execCommand/remove-formatting-expected.png: Removed.
  • platform/chromium-win/editing/execCommand/remove-formatting-expected.txt: Removed.
  • platform/mac-leopard/editing/execCommand/remove-formatting-2-expected.checksum: Removed.
  • platform/mac-leopard/editing/execCommand/remove-formatting-2-expected.png: Removed.
  • platform/mac-leopard/editing/execCommand/remove-formatting-expected.checksum: Removed.
  • platform/mac-leopard/editing/execCommand/remove-formatting-expected.png: Removed.
  • platform/mac/editing/execCommand/remove-formatting-2-expected.checksum: Removed.
  • platform/mac/editing/execCommand/remove-formatting-2-expected.png: Removed.
  • platform/mac/editing/execCommand/remove-formatting-2-expected.txt: Removed.
  • platform/mac/editing/execCommand/remove-formatting-expected.checksum: Removed.
  • platform/mac/editing/execCommand/remove-formatting-expected.png: Removed.
  • platform/mac/editing/execCommand/remove-formatting-expected.txt: Removed.
  • platform/qt/editing/execCommand/remove-formatting-2-expected.txt: Removed.
  • platform/qt/editing/execCommand/remove-formatting-expected.txt: Removed.
Location:
trunk/LayoutTests
Files:
2 added
22 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r70027 r70031  
     12010-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
    1372010-10-18  Kent Tamura  <tkent@chromium.org>
    238
  • 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>
    16<script>
     7
    28if (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();
    710
    8 <script>
    911var sel = window.getSelection();
    1012var div = document.getElementById("div");
     
    1416sel.modify("extend", "forward", "word");
    1517document.execCommand("RemoveFormat");
     18
     19Markup.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.");
     20Markup.dump(div);
     21
    1622</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>
    65<div id="test" contenteditable="true">
    76<b>foo</b><a href="http://www.google.com/">bar</a><i>baz</i><br>
     
    98<u>foo</u>bar<span style="text-decoration:line-through">baz</span><br>
    109</div>
    11 <ul id="console"></ul>
     10<pre id="console"></pre>
    1211<script>
     12
     13if (window.layoutTestController)
     14    layoutTestController.dumpEditingCallbacks();
     15
    1316function log(message) {
    1417    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';
    2019}
     20
    2121var e = document.getElementById("test");
    2222var s = window.getSelection();
     
    3232if (!document.execCommand("RemoveFormat"))
    3333    log("Failure: execCommand('RemoveFormat') returned false.");
     34
     35Markup.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.');
     36Markup.dump(e, 'markup');
     37Markup.dump('console', 'console');
     38
    3439</script>
     40</body>
     41</html>
Note: See TracChangeset for help on using the changeset viewer.