Title: [121298] trunk/LayoutTests
Revision
121298
Author
[email protected]
Date
2012-06-26 16:32:24 -0700 (Tue, 26 Jun 2012)

Log Message

Convert editing/inserting/font-size-clears-from-typing-style.html to a dump-as-markup test
https://bugs.webkit.org/show_bug.cgi?id=90024

Reviewed by Ojan Vafai.

Converted a script test to a dump-as-markup test because the test result can be understood much eaiser that way.

* editing/inserting/font-size-clears-from-typing-style-expected.txt:
* editing/inserting/font-size-clears-from-typing-style.html:
* editing/inserting/script-tests: Removed.
* editing/inserting/script-tests/TEMPLATE.html: Removed.
* editing/inserting/script-tests/font-size-clears-from-typing-style.js: Removed.

Modified Paths

Removed Paths

  • trunk/LayoutTests/editing/inserting/script-tests/

Diff

Modified: trunk/LayoutTests/ChangeLog (121297 => 121298)


--- trunk/LayoutTests/ChangeLog	2012-06-26 23:18:31 UTC (rev 121297)
+++ trunk/LayoutTests/ChangeLog	2012-06-26 23:32:24 UTC (rev 121298)
@@ -1,3 +1,18 @@
+2012-06-26  Ryosuke Niwa  <[email protected]>
+
+        Convert editing/inserting/font-size-clears-from-typing-style.html to a dump-as-markup test
+        https://bugs.webkit.org/show_bug.cgi?id=90024
+
+        Reviewed by Ojan Vafai.
+
+        Converted a script test to a dump-as-markup test because the test result can be understood much eaiser that way.
+
+        * editing/inserting/font-size-clears-from-typing-style-expected.txt:
+        * editing/inserting/font-size-clears-from-typing-style.html:
+        * editing/inserting/script-tests: Removed.
+        * editing/inserting/script-tests/TEMPLATE.html: Removed.
+        * editing/inserting/script-tests/font-size-clears-from-typing-style.js: Removed.
+
 2012-06-26  Tom Sepez  <[email protected]>
 
         [chromium] HTML5 audio/video tags - loading http content from https page doesn't trigger warning.

Modified: trunk/LayoutTests/editing/inserting/font-size-clears-from-typing-style-expected.txt (121297 => 121298)


--- trunk/LayoutTests/editing/inserting/font-size-clears-from-typing-style-expected.txt	2012-06-26 23:18:31 UTC (rev 121297)
+++ trunk/LayoutTests/editing/inserting/font-size-clears-from-typing-style-expected.txt	2012-06-26 23:32:24 UTC (rev 121298)
@@ -1,11 +1,4 @@
-Tests that font-size in typingStyle is correctly cleared. See https://bugs.webkit.org/show_bug.cgi?id=26279.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS 1 is 1
-PASS 3 is 3
-PASS successfullyParsed is true
-
-TEST COMPLETE
-BA
+Tests that we don't serialize redundant font-size in typingStyle. There should be no span or style attribute around A or B below.See https://bugs.webkit.org/show_bug.cgi?id=26279.
+| <div>
+|   id="wrapper"
+|   "B<#selection-caret>A"

Modified: trunk/LayoutTests/editing/inserting/font-size-clears-from-typing-style.html (121297 => 121298)


--- trunk/LayoutTests/editing/inserting/font-size-clears-from-typing-style.html	2012-06-26 23:18:31 UTC (rev 121297)
+++ trunk/LayoutTests/editing/inserting/font-size-clears-from-typing-style.html	2012-06-26 23:32:24 UTC (rev 121298)
@@ -1,12 +1,25 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<!DOCTYPE html>
 <html>
-<head>
-<script src=""
-</head>
 <body>
-<p id="description"></p>
-<div id="console"></div>
-<script src=""
-<script src=""
+<script src=""
+<script>
+
+Markup.description("Tests that we don't serialize redundant font-size in typingStyle. There should be no span or style attribute around A or B below."
+     + "See https://bugs.webkit.org/show_bug.cgi?id=26279.");
+
+var editable = document.createElement('div');
+editable.contentEditable = true;
+editable.innerHTML = '<br><div id="wrapper">A</div>';
+
+document.body.appendChild(editable);
+editable.focus();
+
+window.getSelection().setBaseAndExtent(editable, 0, editable, 0);
+document.execCommand('ForwardDelete', false, false);
+document.execCommand('InsertText', false, 'B');
+
+Markup.dump(editable);
+
+</script>
 </body>
 </html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to