summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/crash-line-break-after-outdent.html
blob: 98b64d7c462436aea604b2467b35d4d5d95a1f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<head>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function f() {
    document.designMode="on";
    document.execCommand("SelectAll");
    document.execCommand("InsertImage",false);
    document.execCommand("InsertImage",false);
    document.execCommand("Indent");
    document.execCommand("insertunorderedlist",false);
    document.execCommand("InsertUnorderedList",false);
    document.execCommand("Bold");
    document.execCommand("InsertLineBreak");
    document.execCommand("insertunorderedlist");
    document.execCommand("insertimage",false);
    document.execCommand("insertparagraph",false);
    document.execCommand("insertunorderedlist");
    document.execCommand("InsertUnorderedList");
    document.execCommand("Outdent");
    document.write("<p>Test for bug <a href=\"https://bugs.webkit.org/show_bug.cgi?id=60778\">REGRESSION (83075): Crash in line break after outdent</p>");
    document.write("<p>This test PASSED!</p>");
}
 </script>
</head>
<body onload='f();'>
    <pre id="x">x</pre>
</body>