Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / html / details-add-summary-10-and-click.html
blob49e82d016cc6424705527a909757ce1d51747b0c
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").insertBefore(createNewElement("summary", "new1", "new 1"), document.getElementById("summary1"));
13 if (!window.testRunner || !window.eventSender)
14 return;
15 eventSender.mouseMoveTo(2, 2);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
20 </script>
22 <body style="margin: 0px" onload="runTests()">
23 <details open id="dt1">
24 <summary id="summary1">summary</summary>
25 </details>
26 </body>