Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 19087.html
blob6f55488f0927ac136b89aced2928d84d28cf2350
1 <head>
2 <script>
3 function runTest() {
4 if (window.testRunner)
5 window.testRunner.dumpAsText();
6 start = document.getElementById("start");
7 end = document.getElementById("end");
8 window.getSelection().setBaseAndExtent(start, 0, end, 0);
9 document.execCommand("Indent");
11 </script>
12 </head>
13 <body onLoad="runTest();" contenteditable="true" style="text-align: justify">
14 <div id="description">This tests for a crash when indenting a particular selection that contains a block nested in an inline element that contains an hr. It should not crash.</div>
15 <blockquote id="start" class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
16 <h5>
17 <span class="Apple-style-span" style="font-size: 16px;">
18 <hr style="text-align: right;">
19 <div style="text-align: right;">
20 <br>
21 </div>
22 </span>
23 </h5>
24 </blockquote>
25 <div id="end">
26 <br>
27 </div>
28 </body>