Tests queryCommandState('justifyCenter'), queryCommandState('justifyFull'), queryCommandState('justifyLeft'), and queryCommandState('justifyRight') On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". Caret PASS queryCommand('format') returns "" when selecting no selection on of "hello" PASS queryCommand('format') returns "" when selecting first position of "hello" PASS queryCommand('format') returns "" when selecting first position of "
hello
" PASS queryCommand('format') returns "center" when selecting first position of "hello
" PASS queryCommand('format') returns "full" when selecting first position of "hello
" PASS queryCommand('format') returns "left" when selecting first position of "hello
" PASS queryCommand('format') returns "right" when selecting first position of "hello
" PASS queryCommand('format') returns "center" when selecting first position of "hello
" PASS queryCommand('format') returns "full" when selecting first position of "hello
" PASS queryCommand('format') returns "left" when selecting first position of "hello
" PASS queryCommand('format') returns "right" when selecting first position of "hello
" PASS queryCommand('format') returns "full" when selecting first position of "hello
" PASS queryCommand('format') returns "left" when selecting first position of "hello
" PASS queryCommand('format') returns "right" when selecting first position of "hello
" PASS queryCommand('format') returns "center" when selecting first position of "hello
" PASS queryCommand('format') returns "left" when selecting first position of "hello
" PASS queryCommand('format') returns "right" when selecting first position of "hello
" PASS queryCommand('format') returns "center" when selecting first position of "hello
" PASS queryCommand('format') returns "" when selecting first position of "hello
world
" PASS queryCommand('format') returns "" when selecting middle of "hello
world
" PASS queryCommand('format') returns "" when selecting middle of "hello
world
" PASS queryCommand('format') returns "" when selecting middle of "hello
world
" PASS queryCommand('format') returns "center" when selecting middle of "hello
world
" PASS queryCommand('format') returns "full" when selecting middle of "hello
world
" PASS queryCommand('format') returns "left" when selecting middle of "hello
world
" PASS queryCommand('format') returns "right" when selecting middle of "hello
world
" PASS queryCommand('format') returns "" when selecting middle of "world
world
hellohello
w
orld
" PASS queryCommand('format') returns "" when selecting middle of "hello
w
orld
" Tests for mac PASS queryCommand('format') returns "" when selecting middle of "hello
world
" PASS queryCommand('format') returns "left" when selecting middle of "hello
world
" PASS queryCommand('format') returns "" when selecting middle of "hello
world
" PASS queryCommand('format') returns "left" when selecting middle of "hello
world
" PASS queryCommand('format') returns "center" when selecting middle of "hello
world
" PASS queryCommand('format') returns "full" when selecting middle of "hello
world
" PASS queryCommand('format') returns "left" when selecting middle of "hello
world
" PASS queryCommand('format') returns "right" when selecting middle of "hello
world
" PASS queryCommand('format') returns "right" when selecting middle of "world
world
hellohello
w
orld
" PASS queryCommand('format') returns "full" when selecting middle of "hello
w
orld
" PASS successfullyParsed is true TEST COMPLETE