blob: 052d959ec10198552d363a7c18b99b52a92e4aef [file] [log] [blame]
Test to make sure we do not remove extra styling hidden on html styling elements (b, i, s, etc.) when removing those elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS one bold command converted <b style="text-decoration: underline">test</b> to <span style="text-decoration: underline">test</span>
PASS one italic command converted <i style="font-weight: bold">test</i> to <span style="font-weight: bold">test</span>
PASS one bold command converted <b style="font-weight: bold">test</b> to test
PASS one bold command converted <b foo="bar">test</b> to <span foo="bar">test</span>
PASS one bold command converted <b style='invalid'>test</b> to test
PASS bold followed by undo, correctly return to <b style="text-decoration: underline">test</b>
PASS italic followed by undo, correctly return to <i style="font-weight: bold">test</i>
PASS bold followed by undo converted <b style="text-decoration: underline">test</b> to <b style="text-decoration: underline" foo="bar">test</b>
PASS bold followed by undo converted <b style="text-decoration: underline">test</b> to
PASS bold followed by undo converted <b style="text-decoration: underline">test</b> to <span>foobar</span>
PASS bold followed by undo converted <b style="text-decoration: underline">test</b> to <b style="text-decoration: underline">foobar</b>
PASS successfullyParsed is true
TEST COMPLETE