blob: 07843e9558bce72e2d8955ff8ce012f24d8422d2 [file] [log] [blame]
<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").appendChild(createNewElement("summary", "new1", "new 1"));
document.getElementById("dt1").insertBefore(createNewElement("summary", "new2", "new 2"), document.getElementById("new1"));
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"></details>
</body>