0a99965562ba9bf86fa4b5e57883939bfca41d1b
[WebKit-https.git] / LayoutTests / editing / deleting / removeNodeCommand-assert.html
1 <p>
2     Test for a bug where an assertion in the RemoveNodeCommand constructor failed
3     when deleting a <tt>&lt;br></tt> between a block and a blockquote.
4 </p>
5 <p>
6     The test has passed if the assertion failure did not occur.
7 </p>
8 <div contenteditable style="border: solid red;">
9     <div></div><br id="br"><blockquote type="cite">blockquote</blockquote>
10 </div>
11 <script>
12     if (window.layoutTestController)
13         layoutTestController.dumpAsText();
14
15     var br = document.getElementById("br");
16     var range = document.createRange();
17
18     range.setStartBefore(br);
19     range.setEndAfter(br);
20     getSelection().addRange(range);
21     document.execCommand("Delete", false);
22 </script>