blob: 59286b97850d06a3a0aa298e44bea48b80e93960 [file] [log] [blame]
Test to make sure we can toggle text decorations correctly. The first three tests give different result on mac only.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Platform: mac
PASS one bold command converted "<u><b>hello</b> world</u>" to "<u>hello world</u>
PASS one bold command converted "<b>hello </b>world" to "hello world
PASS one bold command converted "<u><b>hello </b></u>world" to "<u>hello </u>world
PASS one italic command converted "<i>hello</i> <img>" to "hello <img>
PASS one bold command converted "<u><span id='test'><b>hello</b></span><b>world</b></u>" to "<u><span id="test">hello</span>world</u>
PASS one bold command converted "<span id='test' style='font-weight:normal;'><b>hello</b></span>" to "<span id="test">hello</span>
PASS one bold command converted "<div><b>hello</b><br><br><b>world</b></div>" to "<div>hello<br><br>world</div>
PASS one italic command converted "<i>hello </i><img>" to "hello <img>
PASS one italic command converted "<i><b>hello</b>world</i>" to "<b>hello</b>world
PASS one italic command converted "<span style='font-style: normal;'> <i> hello </i> </span>" to " hello
PASS one italic command converted "<p><i>hello</i><span style='font-style:italic;'>world</span></p>" to "<p>helloworld</p>
PASS one italic command converted "<s><b>hello<i> world</i></b></s>" to "<s><b><i>hello world</i></b></s>
Platform: win
PASS one bold command converted "<u><b>hello</b> world</u>" to "<u><b>hello world</b></u>
PASS one bold command converted "<b>hello </b>world" to "<b>hello world</b>
PASS one bold command converted "<u><b>hello </b></u>world" to "<b><u>hello </u>world</b>
PASS one italic command converted "<i>hello</i> <img>" to "<i>hello <img></i>
PASS one bold command converted "<u><span id='test'><b>hello</b></span><b>world</b></u>" to "<u><span id="test">hello</span>world</u>
PASS one bold command converted "<span id='test' style='font-weight:normal;'><b>hello</b></span>" to "<span id="test">hello</span>
PASS one bold command converted "<div><b>hello</b><br><br><b>world</b></div>" to "<div>hello<br><br>world</div>
PASS one italic command converted "<i>hello </i><img>" to "hello <img>
PASS one italic command converted "<i><b>hello</b>world</i>" to "<b>hello</b>world
PASS one italic command converted "<span style='font-style: normal;'> <i> hello </i> </span>" to " hello
PASS one italic command converted "<p><i>hello</i><span style='font-style:italic;'>world</span></p>" to "<p>helloworld</p>
PASS one italic command converted "<s><b>hello<i> world</i></b></s>" to "<s><b><i>hello world</i></b></s>
Platform: unix
PASS one bold command converted "<u><b>hello</b> world</u>" to "<u><b>hello world</b></u>
PASS one bold command converted "<b>hello </b>world" to "<b>hello world</b>
PASS one bold command converted "<u><b>hello </b></u>world" to "<b><u>hello </u>world</b>
PASS one italic command converted "<i>hello</i> <img>" to "<i>hello <img></i>
PASS one bold command converted "<u><span id='test'><b>hello</b></span><b>world</b></u>" to "<u><span id="test">hello</span>world</u>
PASS one bold command converted "<span id='test' style='font-weight:normal;'><b>hello</b></span>" to "<span id="test">hello</span>
PASS one bold command converted "<div><b>hello</b><br><br><b>world</b></div>" to "<div>hello<br><br>world</div>
PASS one italic command converted "<i>hello </i><img>" to "hello <img>
PASS one italic command converted "<i><b>hello</b>world</i>" to "<b>hello</b>world
PASS one italic command converted "<span style='font-style: normal;'> <i> hello </i> </span>" to " hello
PASS one italic command converted "<p><i>hello</i><span style='font-style:italic;'>world</span></p>" to "<p>helloworld</p>
PASS one italic command converted "<s><b>hello<i> world</i></b></s>" to "<s><b><i>hello world</i></b></s>
PASS successfullyParsed is true
TEST COMPLETE