// For documentation of the format, see README in this directory. var browserTests = [ ["foo[]bar", [["underline",""]], "foo[]bar", [true], {"underline":[false,false,"",false,true,""]}], ["

[foo

bar]

", [["stylewithcss","true"],["underline",""]], "

[foo

bar]

", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["

[foo

bar]

", [["stylewithcss","false"],["underline",""]], "

[foo

bar]

", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["[foo bar]", [["stylewithcss","true"],["underline",""]], "[foo bar]", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["[foo bar]", [["stylewithcss","false"],["underline",""]], "[foo bar]", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["

[foo

bar

baz]

", [["stylewithcss","true"],["underline",""]], "

[foo

bar

baz

", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["

[foo

bar

baz]

", [["stylewithcss","false"],["underline",""]], "

[foo

bar

baz]

", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["

[foo


bar]", [["stylewithcss","true"],["underline",""]], "

[foo


bar]

", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["

[foo


bar]", [["stylewithcss","false"],["underline",""]], "

[foo


bar]

", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[]bar", [["underline",""]], "foo[]bar", [true], {"underline":[false,false,"",false,true,""]}], ["foo[]bar", [["underline",""]], "foo[]bar", [true], {"underline":[false,false,"",false,true,""]}], ["foo{}bar", [["underline",""]], "foo{}bar", [true], {"underline":[false,false,"",false,true,""]}], ["foo[]bar", [["underline",""]], "foo[]bar", [true], {"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[barbaz]qozquz", [["stylewithcss","true"],["underline",""]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[barbaz]qozquz", [["stylewithcss","false"],["underline",""]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[barbaz]qozquz", [["stylewithcss","true"],["underline",""]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[barbaz]qozquz", [["stylewithcss","false"],["underline",""]], "foo[barbaz]qozquz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["{

foo

}", [["stylewithcss","true"],["underline",""]], "{

foo

}", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["{

foo

}", [["stylewithcss","false"],["underline",""]], "{

foo

}", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["
foob[a]rbaz
", [["stylewithcss","true"],["underline",""]], "
foob[a]rbaz
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["
foob[a]rbaz
", [["stylewithcss","false"],["underline",""]], "
foob[a]rbaz
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","true"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","false"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","true"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","false"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","true"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","false"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","true"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["
foobarbaz
", [["stylewithcss","false"],["underline",""]], "{}
foobarbaz
", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["{
foobarbaz
}", [["stylewithcss","true"],["underline",""]], "{
foobarbaz
}", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["{
foobarbaz
}", [["stylewithcss","false"],["underline",""]], "{
foobarbaz
}", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["

foo[bar]baz

", [["stylewithcss","true"],["underline",""]], "

foo[bar]baz

", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["

foo[bar]baz

", [["stylewithcss","false"],["underline",""]], "

foo[bar]baz

", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], // should be replaced with new because it just represents line-though // style, and should set its text-decoration to underline (requested style) and // line-through (default style of ). ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], // Should update text-decoration declaration in the which is a container // of the range. ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["

foo[bar]baz

", [["stylewithcss","true"],["underline",""]], "

foo[bar]baz

", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["

foo[bar]baz

", [["stylewithcss","false"],["underline",""]], "

foo[bar]baz

", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], // Should replace with new because is just representing // line-through style, and set its text-decoration to underline (requested // style) and line-though (default style of ). ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], // Should set text-decoration of because it has line-through style by // default and it is not only representing it, thus, replacing it with // changes the meaning. ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,false,""]}], ["foob[a]rbaz", [["stylewithcss","true"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foob[a]rbaz", [["stylewithcss","false"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foob[a]rbaz", [["stylewithcss","true"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foob[a]rbaz", [["stylewithcss","false"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","true"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","false"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], // Should replace with new and set its `text-decoration` to underline // (for applying the requested style) and overline (which was specified to the // ). Note that line-though was removed by the text-decoration setting. // Therefore, it should not appear. ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","true"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","false"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","true"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","false"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["

foo[bar]baz

", [["stylewithcss","true"],["underline",""]], "

foo[bar]baz

", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["

foo[bar]baz

", [["stylewithcss","false"],["underline",""]], "

foo[bar]baz

", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], ["foob[a]rbaz", [["underline",""]], "foob[a]rbaz", [true], {"underline":[false,true,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","true"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,false,"",false,true,""]}], ["foob[a]rbaz", [["stylewithcss","false"],["underline",""]], "foob[a]rbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,false,"",false,true,""]}], ["foo[bar]baz", [["underline",""]], "foo[bar]baz", [true], {"underline":[false,true,"",false,true,""]}], ["foob[a]rbaz", [["underline",""]], "foob[a]rbaz", [true], {"underline":[false,true,"",false,true,""]}], ["fo[ob]arbaz", [["underline",""]], "fo[ob]arbaz", [true], {"underline":[true,false,"",false,true,""]}], ["fooba[rb]az", [["underline",""]], "fooba[rb]az", [true], {"underline":[true,false,"",false,true,""]}], ["fo[obarb]az", [["stylewithcss","true"],["underline",""]], "fo[obarb]az", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[true,false,"",false,true,""]}], ["fo[obarb]az", [["stylewithcss","false"],["underline",""]], "fo[obarb]az", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[true,false,"",false,true,""]}], ["foo[b]arbaz", [["stylewithcss","true"],["underline",""]], "foo[b]arbaz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[b]arbaz", [["stylewithcss","false"],["underline",""]], "foo[b]arbaz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["fooba[r]baz", [["stylewithcss","true"],["underline",""]], "fooba[r]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["fooba[r]baz", [["stylewithcss","false"],["underline",""]], "fooba[r]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","true"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo[bar]baz", [["stylewithcss","false"],["underline",""]], "foo[bar]baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["foo{bar}baz", [["stylewithcss","true"],["underline",""]], "foo{bar}baz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",false,false,""]}], ["foo{bar}baz", [["stylewithcss","false"],["underline",""]], "foo{bar}baz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",false,false,""]}], ["fo[ob]arbaz", [["underline",""]], "fo[ob]arbaz", [true], {"underline":[true,false,"",false,true,""]}], ["fo[ob]ar", [["stylewithcss","true"],["underline",""]], "fo[ob]ar", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",true,false,""]}], ["fo[ob]ar", [["stylewithcss","false"],["underline",""]], "fo[ob]ar", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",true,false,""]}], ["fo[ob]ar", [["stylewithcss","true"],["underline",""]], "fo[ob]ar", [true,true], {"stylewithcss":[false,false,"",false,true,""],"underline":[false,true,"",true,false,""]}], ["fo[ob]ar", [["stylewithcss","false"],["underline",""]], "fo[ob]ar", [true,true], {"stylewithcss":[false,true,"",false,false,""],"underline":[false,true,"",true,false,""]}], // Tests to remove only underline from existing text-decoration ["abc[def]ghi", [["stylewithcss","true"],["underline",""]], ["abc[def]ghi", "abc[def]ghi"], [true,true], {}], // blink, text-decoration-color and text-decoration-style values should be // dropped. This rule is odd because executing "underline" command causes // the data loss, but for now, the compatibility between browsers is more // important. Once you want/need to change the behavior of a browser, you // should file a spec issue first. // And these tests allows the difference between text-decoration vs. // text-decoration-line because these tests want to check the data loss. ["abc[def]ghi", [["stylewithcss","true"],["underline",""]], ["abc[def]ghi", "abc[def]ghi"], [true,true], {}], ["abc[def]ghi", [["stylewithcss","true"],["underline",""]], ["abc[def]ghi", "abc[def]ghi"], [true,true], {}], ["abc[def]ghi", [["stylewithcss","true"],["underline",""]], ["abc[def]ghi", "abc[def]ghi"], [true,true], {}], ["abc[def]ghi", [["stylewithcss","true"],["underline",""]], ["abc[def]ghi", "abc[def]ghi"], [true,true], {}], ]