summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/switch-multiple-list-items-crash.html
blob: 5dab1c0cca987d40aed56546207781c06c9e64f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html><head><script>

if (window.layoutTestController)
    layoutTestController.dumpAsText();

function go() {
    document.execCommand("selectall");
    document.designMode="on";
    document.execCommand("InsertLineBreak");
    document.execCommand("insertimage");
    document.execCommand("InsertOrderedList");
    document.execCommand("inserthtml", false, "z");
    document.execCommand("InsertHorizontalRule");
    document.execCommand("selectall");
    document.execCommand("createlink", false, "z");
    document.execCommand("insertunorderedlist");
    document.body.innerHTML = 'This test ensures WebKit does not crash when switching the type of a list with multiple list items.<br>PASS';
}
</script></head><body onload="go();"></body></html>