// For documentation of the format, see README in this directory. var browserTests = [ ["foo[]bar
extra", [["defaultparagraphseparator","div"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"div"],"formatblock":[false,false,"",false,false,"div"]}], ["foo[]barextra", [["defaultparagraphseparator","p"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"div"]}], ["foo{}barextra", [["defaultparagraphseparator","div"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"div"]}], ["foo{}barextra", [["defaultparagraphseparator","p"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"div"]}], ["foo[]barextra", [["defaultparagraphseparator","div"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"div"]}], ["foo[]barextra", [["defaultparagraphseparator","p"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"div"]}], ["foo[bar]bazextra", [["defaultparagraphseparator","div"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"div"]}], ["foo[bar]bazextra", [["defaultparagraphseparator","p"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"div"]}], ["foo]bar[bazextra", [["defaultparagraphseparator","div"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"div"]}], ["foo]bar[bazextra", [["defaultparagraphseparator","p"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"div"]}], ["{
foo
}", [["defaultparagraphseparator","div"],["formatblock","
foo
}", [["defaultparagraphseparator","p"],["formatblock","extra", [["defaultparagraphseparator","div"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"div"]}], ["foo[barbaz]qozquzextra", [["defaultparagraphseparator","p"],["formatblock","
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"div"]}], ["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 |
[foobar]
", [["defaultparagraphseparator","div"],["formatblock","[foobar]
", [["defaultparagraphseparator","p"],["formatblock","[foobar]", [["defaultparagraphseparator","div"],["formatblock","
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"div"]}], ["[foobar]
[foobar]", [["defaultparagraphseparator","p"],["formatblock","
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"div"]}], ["[foobar]
[foobar]", [["defaultparagraphseparator","div"],["formatblock","
[foobar]", [["defaultparagraphseparator","p"],["formatblock","
extra", [["defaultparagraphseparator","div"],["formatblock","
"]], "
foo[]bar
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["foo[]barextra", [["defaultparagraphseparator","p"],["formatblock","
"]], "
foo[]bar
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], ["foo{}barextra", [["defaultparagraphseparator","div"],["formatblock","
"]], "
foo{}bar
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["foo{}barextra", [["defaultparagraphseparator","p"],["formatblock","
"]], "
foo{}bar
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], ["foo[]barextra", [["defaultparagraphseparator","div"],["formatblock","
"]], "
foo[]bar
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["foo[]barextra", [["defaultparagraphseparator","p"],["formatblock","
"]], "
foo[]bar
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], ["foo[bar]bazextra", [["defaultparagraphseparator","div"],["formatblock","
"]], "
foo[bar]baz
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["foo[bar]bazextra", [["defaultparagraphseparator","p"],["formatblock","
"]], "
foo[bar]baz
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], ["foo]bar[bazextra", [["defaultparagraphseparator","div"],["formatblock","
"]], "
foo[bar]baz
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["foo]bar[bazextra", [["defaultparagraphseparator","p"],["formatblock","
"]], "
foo[bar]baz
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], ["{
foo
}", [["defaultparagraphseparator","div"],["formatblock",""]], "
{ foo}
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"p",false,false,"p"]}], ["{
foo
}", [["defaultparagraphseparator","p"],["formatblock",""]], "
{ foo}
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"p",false,false,"p"]}], ["foo[barbaz]qozquzextra", [["defaultparagraphseparator","div"],["formatblock","
"]], "
foo[barbaz]qozquz
extra
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["foo[barbaz]qozquzextra", [["defaultparagraphseparator","p"],["formatblock","
"]], "
foo[barbaz]qozquz
extra
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], ["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 |
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"p"]}], ["[foobar]
", [["formatblock",""]], "
[foobar]
", [true], {"formatblock":[false,false,"p",false,false,"p"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock","
"]], "
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["[foobar]
[foobar]", [["defaultparagraphseparator","p"],["formatblock","
"]], "
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], ["[foobar]
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"h1",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"h1",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"h2",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"h2",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"h3",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"h3",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"h4",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"h4",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"h5",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"h5",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"h6",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"h6",false,false,"p"]}], [""]], "
[foo]
"]], "
[foo]
"]], "
[bar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"dd",false,false,"p"]}], [""]], "
[bar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"dd",false,false,"p"]}], [""]], "
[foo
bar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[true,false,"dt",false,false,"p"]}], [""]], "
[foo
bar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[true,false,"dt",false,false,"p"]}], [""]], "
[foobar]
"]], "
[foobar]
"]], "
[foobar]
"]], "
[foobar]
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"address",false,false,"p"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"address",false,false,"p"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock","
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"pre",false,false,"p"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock","
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"pre",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], [""]],
" [foobar]
"]],
" [foobar]
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"",false,false,"p"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"",false,false,"p"]}], [""]], "
[foobar]
"]], "
[foobar]
"]], "
"]], "
"]], "
"]], "
[foo]
extra", [["formatblock","
"]], "[foo]extra
", [false], {"formatblock":[false,false,"",false,false,""]}], ["[foo]
bar
extra", [["formatblock","
"]], "[foo]
bar
extra
", [false], {"formatblock":[false,false,"p",false,false,"p"]}], ["[foo]barextra", [["formatblock","
"]], "[foo]barextra
", [false], {"formatblock":[false,false,"",false,false,""]}], ["[foo
bar]
baz", [["formatblock","
"]], "[foo
bar]
baz
", [false], {"formatblock":[false,false,"p",false,false,"p"]}], ["[foo] ", [["formatblock",""]], "[foo] ", [false], {"formatblock":[false,false,"",false,false,""]}], ["", [["formatblock"," [foo]
"]], "", [false], {"formatblock":[false,false,"p",false,false,"p"]}], [" [foo]
", [["formatblock"," [foo]
bar
baz
"]], "", [false], {"formatblock":[false,false,"h1",false,false,"h1"]}], [" [foo]
bar
baz
[foo] ", [["formatblock",""]], " [foo] ", [false], {"formatblock":[false,false,"",false,false,""]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "[foobar]", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"address"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "[foobar]", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"address"]}], ["[foobar]", [["formatblock",""]], " [foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["formatblock",""]], "[foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], " ", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"dd"]}], ["
- [foobar]
[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], " ", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"dd"]}], ["
- [foobar]
[foobar]", [["formatblock",""]], "[foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["formatblock",""]], "
[foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock","- "]], "
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"dt"]}], ["
- [foobar]
[foobar]", [["defaultparagraphseparator","p"],["formatblock","- "]], "
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"dt"]}], ["
- [foobar]
[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"h1"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"h1"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"h2"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"h2"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"h3"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"h3"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"h4"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"h4"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"h5"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"h5"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"div",false,false,"h6"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"h6"]}], ["[foobar]", [["formatblock",""]], "[foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["formatblock","- "]], "
[foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["formatblock",""]], "
[foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock",""]], "[foobar]", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"div",false,false,"pre"]}], ["[foobar]", [["formatblock",""]], "
[foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]", [["formatblock",""]], " [foobar]", [false], {"formatblock":[false,false,"div",false,false,"div"]}], ["[foobar]
", [["defaultparagraphseparator","div"],["formatblock",""]], "[foobar]", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"p",false,false,"address"]}], ["[foobar]
", [["defaultparagraphseparator","p"],["formatblock",""]], "[foobar]", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"p",false,false,"address"]}], ["[foobar]
", [["formatblock",""]], " [foobar]
", [false], {"formatblock":[false,false,"p",false,false,"p"]}], ["[foobar]
", [["formatblock","