Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / html / details-add-summary-8-and-click.html
blob07843e9558bce72e2d8955ff8ce012f24d8422d2
2 <script>
4 var createNewElement = function (tag, id, text) {
5 var result = document.createElement(tag);
6 result.setAttribute('id',id);
7 result.innerHTML = text;
8 return result;
9 };
11 var runTests = function () {
12 document.getElementById("dt1").appendChild(createNewElement("summary", "new1", "new 1"));
13 document.getElementById("dt1").insertBefore(createNewElement("summary", "new2", "new 2"), document.getElementById("new1"));
15 if (!window.testRunner || !window.eventSender)
16 return;
17 eventSender.mouseMoveTo(2, 2);
18 eventSender.mouseDown();
19 eventSender.mouseUp();
22 </script>
24 <body style="margin: 0px" onload="runTests()">
25 <details open id="dt1"></details>
26 </body>