diff --git a/editing/data/insertimage.js b/editing/data/insertimage.js index b18388a7971dfd..b62331e152098e 100644 --- a/editing/data/insertimage.js +++ b/editing/data/insertimage.js @@ -12,7 +12,7 @@ var browserTests = [ {"insertimage":[false,false,"",false,false,""]}], ["foo[]bar", [["insertimage","/img/lion.svg"]], - "foo{}bar", + "foobar", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo[bar]baz", @@ -27,17 +27,17 @@ var browserTests = [ {"insertimage":[false,false,"",false,false,""]}], ["foo[bar]baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo{bar}baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo{bar}baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["[foobar]baz", @@ -62,57 +62,57 @@ var browserTests = [ {"stylewithcss":[false,true,"",false,false,""],"insertimage":[false,false,"",false,false,""]}], ["foo[barbaz]", [["insertimage","/img/lion.svg"]], - "foo{}", + "foo", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo{barbaz}", [["insertimage","/img/lion.svg"]], - "foo{}", + "foo", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo[barbaz]quz", [["stylewithcss","true"],["insertimage","/img/lion.svg"]], - "foo{}quz", + "fooquz", [true,true], {"stylewithcss":[false,false,"",false,true,""],"insertimage":[false,false,"",false,false,""]}], ["foo[barbaz]quz", [["stylewithcss","false"],["insertimage","/img/lion.svg"]], - "foo{}quz", + "fooquz", [true,true], {"stylewithcss":[false,true,"",false,false,""],"insertimage":[false,false,"",false,false,""]}], ["foo[bar]baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo{bar}baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo{bar}baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo[bar]baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo{bar}baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo{bar}baz", [["insertimage","/img/lion.svg"]], - "foo{}baz", + "foobaz", [true], {"insertimage":[false,false,"",false,false,""]}], ["foo[barbaz]quz", [["insertimage","/img/lion.svg"]], - "foo{}quz", + "fooquz", [true], {"insertimage":[false,false,"",false,false,""]}], ["

foo

[bar]

baz

", @@ -355,4 +355,32 @@ var browserTests = [ "foo{}bar", [true], {"insertimage":[false,false,"",false,false,""]}], +["
{}
", + [["insertimage","/img/lion.svg"]], + ["
", + "

"], + [true], + {}], +["
{}
", + [["insertimage","/img/lion.svg"]], + ["
", + "

"], + [true], + {}], +["
{}
", + [["insertimage","/img/lion.svg"]], + ["
", + "

"], + [true], + {}], +["
A[]B
", + [["insertimage","/img/lion.svg"]], + "
AB
", + [true], + {}], +["
A[]B
", + [["insertimage","/img/lion.svg"]], + "
AB
", + [true], + {}], ]