Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / blockquote-crash.html
blob5f5c1be92333e8135830fa61c30858c827d8ab6b
1 <html>
2 <head>
3 <style>
4 blockquote {
5 color: blue;
6 border-left: 2px solid blue;
7 padding-left: 5px;
8 margin: 0px;
10 </style>
11 <script>
12 function test()
14 if (window.testRunner)
15 testRunner.dumpAsText();
17 var qt = document.getElementById('qt');
18 var sel = window.getSelection();
19 sel.collapse(qt, 0);
20 sel.modify("extend", "forward", "line");
21 document.execCommand("InsertNewlineInQuotedContent");
23 document.write("<xmp>" + document.body.innerHTML + "</xmp>");
25 </script>
26 </head>
27 <body contenteditable onload="test()">
28 <div>This test should not crash</div>
29 <blockquote type="cite" id="qt">triple click me! then hit enter
30 <blockquote type="cite"><div style="min-height: 14px;"></div></blockquote>
31 </blockquote>
32 </body>
33 </html>