4 <div>This tests to see if a line break is incorrectly inserted when you delete the content directly following a button.
</div>
5 <div id=
"container" contenteditable=
"true"><button>button
</button> this text should be on the same line as the button
</div>
6 <div id=
"result">FAIL
</div>
9 var target
= document
.getElementById("container");
10 window
.getSelection().collapse(target
, 1);
11 window
.getSelection().modify("move", "right", "character");
12 document
.execCommand("delete");
13 if (target
.childNodes
.length
== 2)
14 document
.getElementById("result").innerHTML
= "PASS";
15 if (window
.testRunner
)
16 window
.testRunner
.dumpAsText();