summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/html/details-add-summary-10-and-click.html
blob: 49e82d016cc6424705527a909757ce1d51747b0c (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
<script>

var createNewElement = function (tag, id, text) {
    var result = document.createElement(tag);
    result.setAttribute('id',id);
    result.innerHTML = text;
    return result;
};

var runTests = function () {
    document.getElementById("dt1").insertBefore(createNewElement("summary", "new1", "new 1"), document.getElementById("summary1"));

    if (!window.testRunner || !window.eventSender)
        return;
    eventSender.mouseMoveTo(2, 2);
    eventSender.mouseDown();
    eventSender.mouseUp();
};

</script>

<body style="margin: 0px" onload="runTests()">
    <details open id="dt1">
        <summary id="summary1">summary</summary>
    </details>
</body>