Test to make sure queryCommandState returns correct values.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Tests for win
PASS queryCommandState("bold") returns false when selecting all of "hello"
PASS queryCommandState("bold") returns false when selecting all of "hello"
PASS queryCommandState("bold") returns true when selecting all of "hello"
PASS queryCommandState("bold") returns false when selecting all of "hello world"
PASS queryCommandState("bold") returns false when selecting all of "hello world"
PASS queryCommandState("bold") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("bold") returns false when selecting second word of "hello world WebKit"
PASS queryCommandState("bold") returns true when selecting second word of "hello hello WebKit"
PASS queryCommandState("bold") returns true when selecting second word of "hello hello WebKit"
PASS queryCommandState("bold") returns true when selecting second word of "
hello hello WebKit
"
PASS queryCommandState("bold") returns false when selecting all of "hello"
PASS queryCommandState("bold") returns true when selecting all of "hello"
PASS queryCommandState("bold") returns false when selecting all of "hello world WebKit"
PASS queryCommandState("bold") returns true when selecting all of "hello world"
PASS queryCommandState("bold") returns true when selecting all of "hello
WebKit
"
PASS queryCommandState("italic") returns false when selecting all of "hello"
PASS queryCommandState("italic") returns false when selecting all of "hello"
PASS queryCommandState("italic") returns true when selecting all of "hello"
PASS queryCommandState("italic") returns false when selecting all of "hello world"
PASS queryCommandState("italic") returns false when selecting all of "hello world"
PASS queryCommandState("italic") returns true when selecting all of "hello world
"
PASS queryCommandState("italic") returns false when selecting all of "hello hello
"
PASS queryCommandState("subscript") returns false when selecting all of "hello"
PASS queryCommandState("subscript") returns false when selecting all of "hello"
PASS queryCommandState("subscript") returns true when selecting all of "hello"
PASS queryCommandState("subscript") returns false when selecting all of "hello world"
PASS queryCommandState("subscript") returns false when selecting all of "hello world"
PASS queryCommandState("subscript") returns true when selecting all of "hello world
"
PASS queryCommandState("subscript") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("superscript") returns false when selecting all of "hello"
PASS queryCommandState("superscript") returns false when selecting all of "hello"
PASS queryCommandState("superscript") returns true when selecting all of "hello"
PASS queryCommandState("superscript") returns false when selecting all of "hello world"
PASS queryCommandState("superscript") returns false when selecting all of "hello world"
PASS queryCommandState("superscript") returns false when selecting all of "helloworld"
PASS queryCommandState("superscript") returns false when selecting all of "helloworld"
PASS queryCommandState("underline") returns false when selecting all of "hello"
PASS queryCommandState("underline") returns false when selecting all of "hello"
PASS queryCommandState("underline") returns true when selecting all of "hello"
PASS queryCommandState("underline") returns false when selecting all of "hello world"
PASS queryCommandState("underline") returns false when selecting all of "hello world"
PASS queryCommandState("underline") returns true when selecting all of "hello world
"
PASS queryCommandState("underline") returns true when selecting second word of "hello world WebKit
"
PASS queryCommandState("underline") returns false when selecting second word of "hello world WebKit"
PASS queryCommandState("underline") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("underline") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("strikeThrough") returns false when selecting all of "hello"
PASS queryCommandState("strikeThrough") returns false when selecting all of "hello"
PASS queryCommandState("strikeThrough") returns true when selecting all of "hello"
PASS queryCommandState("strikeThrough") returns false when selecting all of "hello world"
PASS queryCommandState("strikeThrough") returns false when selecting all of "hello world"
PASS queryCommandState("strikeThrough") returns true when selecting all of "hello world
"
PASS queryCommandState("strikeThrough") returns true when selecting second word of "hello world WebKit
"
PASS queryCommandState("strikeThrough") returns false when selecting second word of "hello world WebKit"
PASS queryCommandState("strikeThrough") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("strikeThrough") returns false when selecting first two words of "hello world WebKit"
Tests for mac
PASS queryCommandState("bold") returns false when selecting all of "hello"
PASS queryCommandState("bold") returns false when selecting all of "hello"
PASS queryCommandState("bold") returns true when selecting all of "hello"
PASS queryCommandState("bold") returns false when selecting all of "hello world"
PASS queryCommandState("bold") returns true when selecting all of "hello world"
PASS queryCommandState("bold") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("bold") returns false when selecting second word of "hello world WebKit"
PASS queryCommandState("bold") returns true when selecting second word of "hello hello WebKit"
PASS queryCommandState("bold") returns true when selecting second word of "hello hello WebKit"
PASS queryCommandState("bold") returns true when selecting second word of "hello hello WebKit
"
PASS queryCommandState("bold") returns false when selecting all of "hello"
PASS queryCommandState("bold") returns true when selecting all of "hello"
PASS queryCommandState("bold") returns true when selecting all of "hello world WebKit"
PASS queryCommandState("bold") returns true when selecting all of "hello world"
PASS queryCommandState("bold") returns true when selecting all of "hello
WebKit
"
PASS queryCommandState("italic") returns false when selecting all of "hello"
PASS queryCommandState("italic") returns false when selecting all of "hello"
PASS queryCommandState("italic") returns true when selecting all of "hello"
PASS queryCommandState("italic") returns true when selecting all of "hello world"
PASS queryCommandState("italic") returns false when selecting all of "hello world"
PASS queryCommandState("italic") returns true when selecting all of "hello world
"
PASS queryCommandState("italic") returns true when selecting all of "hello hello
"
PASS queryCommandState("subscript") returns false when selecting all of "hello"
PASS queryCommandState("subscript") returns false when selecting all of "hello"
PASS queryCommandState("subscript") returns true when selecting all of "hello"
PASS queryCommandState("subscript") returns true when selecting all of "hello world"
PASS queryCommandState("subscript") returns false when selecting all of "hello world"
PASS queryCommandState("subscript") returns true when selecting all of "hello world
"
PASS queryCommandState("subscript") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("superscript") returns false when selecting all of "hello"
PASS queryCommandState("superscript") returns false when selecting all of "hello"
PASS queryCommandState("superscript") returns true when selecting all of "hello"
PASS queryCommandState("superscript") returns true when selecting all of "hello world"
PASS queryCommandState("superscript") returns false when selecting all of "hello world"
PASS queryCommandState("superscript") returns true when selecting all of "helloworld"
PASS queryCommandState("superscript") returns false when selecting all of "helloworld"
PASS queryCommandState("underline") returns false when selecting all of "hello"
PASS queryCommandState("underline") returns false when selecting all of "hello"
PASS queryCommandState("underline") returns true when selecting all of "hello"
PASS queryCommandState("underline") returns true when selecting all of "hello world"
PASS queryCommandState("underline") returns false when selecting all of "hello world"
PASS queryCommandState("underline") returns true when selecting all of "hello world
"
PASS queryCommandState("underline") returns true when selecting second word of "hello world WebKit
"
PASS queryCommandState("underline") returns false when selecting second word of "hello world WebKit"
PASS queryCommandState("underline") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("underline") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("strikeThrough") returns false when selecting all of "hello"
PASS queryCommandState("strikeThrough") returns false when selecting all of "hello"
PASS queryCommandState("strikeThrough") returns true when selecting all of "hello"
PASS queryCommandState("strikeThrough") returns true when selecting all of "hello world"
PASS queryCommandState("strikeThrough") returns false when selecting all of "hello world"
PASS queryCommandState("strikeThrough") returns true when selecting all of "hello world
"
PASS queryCommandState("strikeThrough") returns true when selecting second word of "hello world WebKit
"
PASS queryCommandState("strikeThrough") returns false when selecting second word of "hello world WebKit"
PASS queryCommandState("strikeThrough") returns true when selecting second word of "hello world WebKit"
PASS queryCommandState("strikeThrough") returns false when selecting first two words of "hello world WebKit"
PASS successfullyParsed is true
TEST COMPLETE
hello world WebKit