Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / removeNodeCommand-assert.html
blob4f9a616def84442ca35191a81a6bb08c9a9317e8
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.testRunner)
13 testRunner.dumpAsText();
15 var br = document.getElementById("br");
16 var range = document.createRange();
18 range.setStartBefore(br);
19 range.setEndAfter(br);
20 getSelection().addRange(range);
21 document.execCommand("Delete", false);
22 </script>