From 11e633eac8a30ed4c0b27a684266f18461a38c5a Mon Sep 17 00:00:00 2001 From: "rniwa@webkit.org" Date: Tue, 26 Jun 2012 23:32:24 +0000 Subject: [PATCH] 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. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121298 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- LayoutTests/ChangeLog | 15 +++++++++++ ...font-size-clears-from-typing-style-expected.txt | 15 +++-------- .../font-size-clears-from-typing-style.html | 29 ++++++++++++++++------ .../editing/inserting/script-tests/TEMPLATE.html | 12 --------- .../font-size-clears-from-typing-style.js | 19 -------------- 5 files changed, 40 insertions(+), 50 deletions(-) delete mode 100644 LayoutTests/editing/inserting/script-tests/TEMPLATE.html delete mode 100644 LayoutTests/editing/inserting/script-tests/font-size-clears-from-typing-style.js diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index 0da6bfc..01a60f1 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,18 @@ +2012-06-26 Ryosuke Niwa + + 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 [chromium] HTML5 audio/video tags - loading http content from https page doesn't trigger warning. diff --git a/LayoutTests/editing/inserting/font-size-clears-from-typing-style-expected.txt b/LayoutTests/editing/inserting/font-size-clears-from-typing-style-expected.txt index 70d719d..11f42ed 100644 --- a/LayoutTests/editing/inserting/font-size-clears-from-typing-style-expected.txt +++ b/LayoutTests/editing/inserting/font-size-clears-from-typing-style-expected.txt @@ -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. +|
+| id="wrapper" +| "B<#selection-caret>A" diff --git a/LayoutTests/editing/inserting/font-size-clears-from-typing-style.html b/LayoutTests/editing/inserting/font-size-clears-from-typing-style.html index 2934698..526d23a 100644 --- a/LayoutTests/editing/inserting/font-size-clears-from-typing-style.html +++ b/LayoutTests/editing/inserting/font-size-clears-from-typing-style.html @@ -1,12 +1,25 @@ - + - - - -

-
- - + + diff --git a/LayoutTests/editing/inserting/script-tests/TEMPLATE.html b/LayoutTests/editing/inserting/script-tests/TEMPLATE.html deleted file mode 100644 index e439eb3..0000000 --- a/LayoutTests/editing/inserting/script-tests/TEMPLATE.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - -

-
- - - - diff --git a/LayoutTests/editing/inserting/script-tests/font-size-clears-from-typing-style.js b/LayoutTests/editing/inserting/script-tests/font-size-clears-from-typing-style.js deleted file mode 100644 index 49cc711..0000000 --- a/LayoutTests/editing/inserting/script-tests/font-size-clears-from-typing-style.js +++ /dev/null @@ -1,19 +0,0 @@ -description("Tests that font-size in typingStyle is correctly cleared. See https://bugs.webkit.org/show_bug.cgi?id=26279."); - -var editable = document.createElement('div'); -editable.contentEditable = true; -editable.innerHTML = '
A
'; - -document.body.appendChild(editable); -editable.focus(); - -window.getSelection().setBaseAndExtent(editable, 0, editable, 0); -document.execCommand('ForwardDelete', false, false); -document.execCommand('InsertText', false, 'B'); - -// The forward delete leaves the cursor in the "wrapper" div. -// After typing, there should be exactly one textnode in the wrapper div. -shouldBe(String(wrapper.childNodes.length), '1'); -shouldBe(String(wrapper.firstChild.nodeType), '3'); - -var successfullyParsed = true; -- 2.7.4