[Webkit-unassigned] [Bug 23366] Need to test toggle behavior of editing style commands

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 15 16:45:21 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=23366





------- Comment #1 from eric at webkit.org  2009-01-15 16:45 PDT -------
Created an attachment (id=26774)
 --> (https://bugs.webkit.org/attachment.cgi?id=26774&action=view)
the js portion of the test (goes in LayoutTests/editing/execCommand/resources

Current Safari results:
Test to make sure styles toggle as expected and tag-based styles can be removed
by editing commands.

On success, you will see a series of "PASS" messages, followed by "TEST
COMPLETE".


PASS document.compatMode is "BackCompat"
PASS bold toggle
PASS bold removing b
FAIL bold removing font-weight: bold -- <span style="">test</span>
PASS italic toggle
PASS italic removing i
FAIL italic removing font-style: italic -- <span style="">test</span>
FAIL subscript toggle: [object HTMLElement]
FAIL subscript removing sub -- <sub>test</sub>
FAIL subscript removing vertical-align: subscript -- <span><span
class="Apple-style-span" style="vertical-align: sub;">test</span></span>
FAIL superscript toggle: [object HTMLElement]
FAIL superscript removing sup -- <sup>test</sup>
FAIL superscript removing vertical-align: superscript -- <span><span
class="Apple-style-span" style="vertical-align: super;">test</span></span>
PASS strikethrough toggle
FAIL strikethrough removing s -- <s style=""><span class="Apple-style-span"
style="text-decoration: none;">test</span></s>
FAIL strikethrough removing text-decoration: line-through -- <span
style="">test</span>
FAIL strikethrough removing strike -- <strike style=""><span
class="Apple-style-span" style="text-decoration: none;">test</span></strike>
PASS underline toggle
FAIL underline removing u -- <u style=""><span class="Apple-style-span"
style="text-decoration: none;">test</span></u>
FAIL underline removing text-decoration: underline -- <span
style="">test</span>
PASS successfullyParsed is true

TEST COMPLETE

Current FF3 results:

Test to make sure styles toggle as expected and tag-based styles can be removed
by editing commands.

On success, you will see a series of "PASS" messages, followed by "TEST
COMPLETE".
PASS document.compatMode is "BackCompat"
PASS bold toggle
PASS bold removing b
PASS bold removing font-weight: bold
PASS italic toggle
PASS italic removing i
PASS italic removing font-style: italic
PASS subscript toggle
PASS subscript removing sub
FAIL subscript removing vertical-align: subscript -- <sub><span
style="">test</span></sub>
PASS superscript toggle
PASS superscript removing sup
FAIL superscript removing vertical-align: superscript -- <sup><span
style="">test</span></sup>
PASS strikethrough toggle
FAIL strikethrough removing s -- <s>test</s>
PASS strikethrough removing text-decoration: line-through
PASS strikethrough removing strike
PASS underline toggle
PASS underline removing u
PASS underline removing text-decoration: underline
PASS successfullyParsed is true

TEST COMPLETE


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list