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