blob: d5c118e08b2417c85646c9a52a2fdd347d7008ef [file] [log] [blame]
Tests justifying paragraphs to left, right, and center.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Center
PASS execCommand('JustifyCenter') returned "<div style="text-align: center;"><br></div>" selecting first position of ""
PASS execCommand('JustifyCenter') returned "<div style="text-align: center;"><br></div>" selecting first position of "<br>"
PASS execCommand('JustifyCenter') returned "<div style="text-align: center;"><br></div><br>" selecting first position of "<br><br>"
PASS execCommand('JustifyCenter') returned "<div style="text-align: center;">hello</div>" selecting first position of "hello"
PASS execCommand('JustifyCenter') returned "<div style="text-align: center;">hello</div><p>world</p>" selecting first position of "hello<p>world</p>"
PASS execCommand('JustifyCenter') returned "<p style="text-align: center;">hello</p>world" selecting first position of "<p>hello</p>world"
PASS execCommand('JustifyCenter') returned "<div style="text-align: center;">hello</div><blockquote style="text-align: center;">world</blockquote>" selecting all of "hello<blockquote>world</blockquote>"
PASS execCommand('JustifyCenter') returned "<h3 style="text-align: center;">hello</h3><div style="text-align: center;">world</div>" selecting all of "<h3>hello</h3>world"
PASS execCommand('JustifyCenter') returned "<div style="text-align: center;">hello<br>world</div>" selecting first position of "<div style="text-align: center;">hello<br>world</div>"
Full
PASS execCommand('JustifyFull') returned "<div style="text-align: justify;"><br></div>" selecting first position of ""
PASS execCommand('JustifyFull') returned "<div style="text-align: justify;"><br></div>" selecting first position of "<br>"
PASS execCommand('JustifyFull') returned "<div style="text-align: justify;"><br></div><br>" selecting first position of "<br><br>"
PASS execCommand('JustifyFull') returned "<div style="text-align: justify;">hello</div>" selecting first position of "hello"
PASS execCommand('JustifyFull') returned "<div style="text-align: justify;">hello</div><p>world</p>" selecting first position of "hello<p>world</p>"
PASS execCommand('JustifyFull') returned "<p style="text-align: justify;">hello</p>world" selecting first position of "<p>hello</p>world"
PASS execCommand('JustifyFull') returned "<div style="text-align: justify;">hello</div><blockquote style="text-align: justify;">world</blockquote>" selecting all of "hello<blockquote>world</blockquote>"
PASS execCommand('JustifyFull') returned "<h3 style="text-align: justify;">hello</h3><div style="text-align: justify;">world</div>" selecting all of "<h3>hello</h3>world"
PASS execCommand('JustifyFull') returned "<div style="text-align: justify;">hello<br>world</div>" selecting first position of "<div style="text-align: justify;">hello<br>world</div>"
Left
PASS execCommand('JustifyLeft') returned "<div style="text-align: left;"><br></div>" selecting first position of ""
PASS execCommand('JustifyLeft') returned "<div style="text-align: left;"><br></div>" selecting first position of "<br>"
PASS execCommand('JustifyLeft') returned "<div style="text-align: left;"><br></div><br>" selecting first position of "<br><br>"
PASS execCommand('JustifyLeft') returned "<div style="text-align: left;">hello</div>" selecting first position of "hello"
PASS execCommand('JustifyLeft') returned "<div style="text-align: left;">hello</div><p>world</p>" selecting first position of "hello<p>world</p>"
PASS execCommand('JustifyLeft') returned "<p style="text-align: left;">hello</p>world" selecting first position of "<p>hello</p>world"
PASS execCommand('JustifyLeft') returned "<div style="text-align: left;">hello</div><blockquote style="text-align: left;">world</blockquote>" selecting all of "hello<blockquote>world</blockquote>"
PASS execCommand('JustifyLeft') returned "<h3 style="text-align: left;">hello</h3><div style="text-align: left;">world</div>" selecting all of "<h3>hello</h3>world"
PASS execCommand('JustifyLeft') returned "<div style="text-align: left;">hello<br>world</div>" selecting first position of "<div style="text-align: left;">hello<br>world</div>"
Right
PASS execCommand('JustifyRight') returned "<div style="text-align: right;"><br></div>" selecting first position of ""
PASS execCommand('JustifyRight') returned "<div style="text-align: right;"><br></div>" selecting first position of "<br>"
PASS execCommand('JustifyRight') returned "<div style="text-align: right;"><br></div><br>" selecting first position of "<br><br>"
PASS execCommand('JustifyRight') returned "<div style="text-align: right;">hello</div>" selecting first position of "hello"
PASS execCommand('JustifyRight') returned "<div style="text-align: right;">hello</div><p>world</p>" selecting first position of "hello<p>world</p>"
PASS execCommand('JustifyRight') returned "<p style="text-align: right;">hello</p>world" selecting first position of "<p>hello</p>world"
PASS execCommand('JustifyRight') returned "<div style="text-align: right;">hello</div><blockquote style="text-align: right;">world</blockquote>" selecting all of "hello<blockquote>world</blockquote>"
PASS execCommand('JustifyRight') returned "<h3 style="text-align: right;">hello</h3><div style="text-align: right;">world</div>" selecting all of "<h3>hello</h3>world"
PASS execCommand('JustifyRight') returned "<div style="text-align: right;">hello<br>world</div>" selecting first position of "<div style="text-align: right;">hello<br>world</div>"
PASS successfullyParsed is true
TEST COMPLETE