// For documentation of the format, see README in this directory. var browserTests = [ ["foo[]bar", [["fontname","sans-serif"]], "foo[]bar", [true], {"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["
[foo
bar]
", [["stylewithcss","true"],["fontname","sans-serif"]], "[foo
bar]
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["[foo
bar]
", [["stylewithcss","false"],["fontname","sans-serif"]], "[foo
bar]
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["[foo bar]", [["stylewithcss","true"],["fontname","sans-serif"]], "[foo bar]", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["[foo bar]", [["stylewithcss","false"],["fontname","sans-serif"]], "[foo bar]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["[foo
bar
baz]
", [["stylewithcss","true"],["fontname","sans-serif"]], "[foo
bar
baz]
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["[foo
bar
baz]
", [["stylewithcss","false"],["fontname","sans-serif"]], "[foo
bar
baz]
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["[foo
bar]", [["stylewithcss","true"],["fontname","sans-serif"]], "
[foo
bar]
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["[foo
bar]", [["stylewithcss","false"],["fontname","sans-serif"]], "
[foo
bar]
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[]bar", [["fontname","sans-serif"]], "foo[]bar", [true], {"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[]bar", [["fontname","sans-serif"]], "foo[]bar", [true], {"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo{}bar", [["fontname","sans-serif"]], "foo{}bar", [true], {"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[]bar", [["fontname","sans-serif"]], "foo[]bar", [true], {"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[barbaz]qozquz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[barbaz]qozquz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[barbaz]qozquz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo[barbaz]qozquz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["{
foo
}", [["stylewithcss","true"],["fontname","sans-serif"]], "{
foo
}", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["{
foo
}", [["stylewithcss","false"],["fontname","sans-serif"]], "{
foo
}", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"serif",false,false,"sans-serif"]}], ["foo | b[a]r | baz |
foo | b[a]r | baz |
foo | b[a]r | baz |
foo | b[a]r | baz |
foo | bar | baz |
foo | {bar | }baz |
foo | bar | baz |
foo | {bar | }baz |
foo | bar | baz |
foo | bar | }baz |
foo | bar | baz |
foo | bar | }baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
foo | bar | baz |
[bar]
baz",
[["stylewithcss","true"],["fontname","sans-serif"]],
"foo[bar]
baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foo[bar]
baz",
[["stylewithcss","false"],["fontname","sans-serif"]],
"foo[bar]
baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foo[bar]baz",
[["stylewithcss","true"],["fontname","sans-serif"]],
"foo[bar]baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foo[bar]baz",
[["stylewithcss","false"],["fontname","sans-serif"]],
"foo[bar]baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foo[bar]baz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo
[bar]
baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foo[bar]baz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo
[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foo
b[a]r
baz",
[["stylewithcss","true"],["fontname","sans-serif"]],
"foob[a]r
baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foob[a]r
baz",
[["stylewithcss","false"],["fontname","sans-serif"]],
"foob[a]r
baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foob[a]rbaz",
[["stylewithcss","true"],["fontname","sans-serif"]],
"foob[a]rbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foob[a]rbaz",
[["stylewithcss","false"],["fontname","sans-serif"]],
"foob[a]rbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foob[a]rbaz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo
b[a]r
baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["foob[a]rbaz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo
b[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foob[a]rbaz", [["stylewithcss","true"],["fontname","sans-serif"]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foob[a]rbaz", [["stylewithcss","false"],["fontname","sans-serif"]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foob[a]rbaz", [["stylewithcss","true"],["fontname","sans-serif"]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foob[a]rbaz", [["stylewithcss","false"],["fontname","sans-serif"]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["[foo
bar
baz]",
[["stylewithcss","true"],["fontname","sans-serif"]],
"[foobar
baz]",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[foobar
baz]",
[["stylewithcss","false"],["fontname","sans-serif"]],
"[foobar
baz]",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[foobarbaz]",
[["stylewithcss","true"],["fontname","sans-serif"]],
"[foobarbaz]",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[foobarbaz]",
[["stylewithcss","false"],["fontname","sans-serif"]],
"[foobarbaz]",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[foobarbaz]", [["stylewithcss","true"],["fontname","sans-serif"]], "[foo
bar
baz]",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[foobarbaz]", [["stylewithcss","false"],["fontname","sans-serif"]], "[foo
barbaz]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[foobarbaz]", [["stylewithcss","true"],["fontname","sans-serif"]], "[foobarbaz]", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[foobarbaz]", [["stylewithcss","false"],["fontname","sans-serif"]], "[foobarbaz]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[foobarbaz]", [["stylewithcss","true"],["fontname","sans-serif"]], "[foobarbaz]", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[foobarbaz]", [["stylewithcss","false"],["fontname","sans-serif"]], "[foobarbaz]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[foo
ba]r
baz",
[["stylewithcss","true"],["fontname","sans-serif"]],
"[fooba]r
baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[fooba]r
baz",
[["stylewithcss","false"],["fontname","sans-serif"]],
"[fooba]r
baz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[fooba]rbaz",
[["stylewithcss","true"],["fontname","sans-serif"]],
"[fooba]rbaz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[fooba]rbaz",
[["stylewithcss","false"],["fontname","sans-serif"]],
"[fooba]rbaz",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[fooba]rbaz", [["stylewithcss","true"],["fontname","sans-serif"]], "[foo
ba]r
baz",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["[fooba]rbaz", [["stylewithcss","false"],["fontname","sans-serif"]], "[foo
ba]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[fooba]rbaz", [["stylewithcss","true"],["fontname","sans-serif"]], "[fooba]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[fooba]rbaz", [["stylewithcss","false"],["fontname","sans-serif"]], "[fooba]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[fooba]rbaz", [["stylewithcss","true"],["fontname","sans-serif"]], "[fooba]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["[fooba]rbaz", [["stylewithcss","false"],["fontname","sans-serif"]], "[fooba]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["foo
b[ar
baz]",
[["stylewithcss","true"],["fontname","sans-serif"]],
"foob[ar
baz]",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}],
["foob[ar
baz]",
[["stylewithcss","false"],["fontname","sans-serif"]],
"foob[ar
baz]",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}],
["foob[arbaz]",
[["stylewithcss","true"],["fontname","sans-serif"]],
"foob[arbaz]",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}],
["foob[arbaz]",
[["stylewithcss","false"],["fontname","sans-serif"]],
"foob[arbaz]",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}],
["foob[arbaz]", [["stylewithcss","true"],["fontname","sans-serif"]], "foo
b[ar
baz]",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}],
["foob[arbaz]", [["stylewithcss","false"],["fontname","sans-serif"]], "foo
b[arbaz]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}], ["foob[arbaz]", [["stylewithcss","true"],["fontname","sans-serif"]], "foob[arbaz]", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}], ["foob[arbaz]", [["stylewithcss","false"],["fontname","sans-serif"]], "foob[arbaz]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}], ["foob[arbaz]", [["stylewithcss","true"],["fontname","sans-serif"]], "foob[arbaz]", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}], ["foob[arbaz]", [["stylewithcss","false"],["fontname","sans-serif"]], "foob[arbaz]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"monospace",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"sans-serif",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"sans-serif",false,false,"sans-serif"]}], ["foob[a]rbaz", [["fontname","sans-serif"]], "foob[a]rbaz", [true], {"fontname":[false,false,"sans-serif",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","true"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foo[bar]baz", [["stylewithcss","false"],["fontname","sans-serif"]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foob[a]rbaz", [["stylewithcss","true"],["fontname","sans-serif"]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["foob[a]rbaz", [["stylewithcss","false"],["fontname","sans-serif"]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["fooba[rb]az", [["fontname","sans-serif"]], "fooba[rb]az", [false], {"fontname":[false,false,"serif",false,false,"serif"]}], ["fo[ob]arbaz", [["fontname","sans-serif"]], "fo[ob]arbaz", [false], {"fontname":[false,false,"serif",false,false,"serif"]}], ["foo{}
b]ar
",
[["stylewithcss","true"],["fontname","sans-serif"]],
"fo[ob]ar
",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["fo[ob]ar
",
[["stylewithcss","false"],["fontname","sans-serif"]],
"fo[ob]ar
",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["fo[ob]ar",
[["stylewithcss","true"],["fontname","sans-serif"]],
"fo[ob]ar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["fo[ob]ar",
[["stylewithcss","false"],["fontname","sans-serif"]],
"fo[ob]ar",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["fo[ob]ar", [["stylewithcss","true"],["fontname","sans-serif"]], "fo[o
b]ar
",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}],
["fo[ob]ar", [["stylewithcss","false"],["fontname","sans-serif"]], "fo[o
b]ar", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["fo[ob]ar", [["stylewithcss","true"],["fontname","sans-serif"]], "fo[ob]ar", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["fo[ob]ar", [["stylewithcss","false"],["fontname","sans-serif"]], "fo[ob]ar", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["fo[ob]ar", [["stylewithcss","true"],["fontname","sans-serif"]], "fo[ob]ar", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["fo[ob]ar", [["stylewithcss","false"],["fontname","sans-serif"]], "fo[ob]ar", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[true,false,"serif",false,false,"sans-serif"]}], ["fo[o
b]ar
",
[["stylewithcss","true"],["fontname","sans-serif"]],
"fo[ob]ar
",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["fo[ob]ar
",
[["stylewithcss","false"],["fontname","sans-serif"]],
"fo[ob]ar
",
[true,true],
{"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["fo[ob]ar", [["stylewithcss","true"],["fontname","sans-serif"]], "
fo[o
b]ar",
[true,true],
{"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}],
["fo[ob]ar", [["stylewithcss","false"],["fontname","sans-serif"]], "
fo[ob]ar", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["fo[ob]ar", [["stylewithcss","true"],["fontname","sans-serif"]], "fo[ob]ar", [true,true], {"stylewithcss":[false,false,"",false,true,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}], ["fo[ob]ar", [["stylewithcss","false"],["fontname","sans-serif"]], "fo[ob]ar", [true,true], {"stylewithcss":[false,true,"",false,false,""],"fontname":[false,false,"monospace",false,false,"sans-serif"]}] ]