2011-03-30 Levi Weintraub <leviw@chromium.org>
[WebKit-https.git] / LayoutTests / editing / execCommand / crash-breaking-blockquote-with-list.html
1 <!DOCTYPE html>
2 <body>
3 <div id="description">This test assures that inserting a newline in a list nested in a blockquote doesn't crash.</div>
4 <div contenteditable="true" id="container">
5 <blockquote type="cite">
6     <ol><li style=" -webkit-appearance: relevancy-level-indicator" id="two">TwoTwo</li></ol>
7 </blockquote>
8 </div>
9 <script>
10     li = document.getElementById("two");
11     text = li.firstChild;
12     selection = window.getSelection();
13     selection.setPosition(text, 3);
14     document.execCommand("InsertNewlineInQuotedContent");
15     var div = document.getElementById("container");
16     div.parentNode.removeChild(div);
17     if (window.layoutTestController)
18         layoutTestController.dumpAsText();
19 </script>
20 </body>