// 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","
[foobar]", [["defaultparagraphseparator","p"],["formatblock","
[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","
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"formatblock":[false,false,"blockquote",false,false,"p"]}], ["[foobar]", [["defaultparagraphseparator","p"],["formatblock","
"]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"blockquote",false,false,"p"]}], [""]], "
[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,"dl",false,false,"p"]}], [""]], "
[foo
bar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[true,false,"dl",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,"article",false,false,"p"]}], [""]], "
[foobar]
", [true,true], {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"formatblock":[false,false,"article",false,false,"p"]}], ["[foobar]", [["defaultparagraphseparator","div"],["formatblock",""]], "
[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
", [true], {"formatblock":[false,false,"blockquote",false,false,"blockquote"]}], ["[foo]
bar
extra", [["formatblock","
"]], "[foo]bar
extra
", [true], {"formatblock":[false,false,"p",false,false,"blockquote"]}], ["[foo]barextra", [["formatblock","
"]], "[foo]barextra
", [true], {"formatblock":[false,false,"",false,false,"blockquote"]}], ["[foo
bar]
baz", [["formatblock","
"]], [ "[foo
bar]baz
", "[foobar]baz
", ], [true], {"formatblock":[false,false,"",false,false,"blockquote"]}], ["[foo] ", [["formatblock",""]], "[foo]", [true], {"formatblock":[false,false,"section",false,false,"blockquote"]}], ["", [["formatblock"," [foo]
"]], "", [true], {"formatblock":[false,false,"p",false,false,"blockquote"]}], [" [foo]", [["formatblock"," [foo]
bar
baz
"]], "", [true], {"formatblock":[false,false,"h1",false,false,"blockquote"]}], [" [foo]bar
baz
[foo] ", [["formatblock",""]], " [foo] ", [true], {"formatblock":[false,false,"section",false,false,"article"]}], ["[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] ", [true], {"formatblock":[false,false,"div",false,false,"article"]}], ["[foobar]", [["formatblock",""]], "[foobar]", [true], {"formatblock":[false,false,"div",false,false,"blockquote"]}], ["[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] ", [true], {"formatblock":[false,false,"p",false,false,"article"]}], ["[foobar]
", [["formatblock","