OLD | NEW |
1 <script> | 1 <script> |
2 | 2 |
3 var runTests = function () { | 3 var runTests = function () { |
4 document.getElementById("dt1").removeChild(document.getElementById("summary2
")); | 4 document.getElementById("dt1").removeChild(document.getElementById("summary2
")); |
5 | 5 |
6 if (!window.testRunner || !window.eventSender) | 6 if (!window.testRunner || !window.eventSender) |
7 return; | 7 return; |
8 // Mouse events only work after an initial layout | |
9 document.body.offsetLeft; | |
10 eventSender.mouseMoveTo(2, 2); | 8 eventSender.mouseMoveTo(2, 2); |
11 eventSender.mouseDown(); | 9 eventSender.mouseDown(); |
12 eventSender.mouseUp(); | 10 eventSender.mouseUp(); |
13 }; | 11 }; |
14 | 12 |
15 </script> | 13 </script> |
16 | 14 |
17 <body style="margin: 0px" onload="runTests()"> | 15 <body style="margin: 0px" onload="runTests()"> |
18 <details open id="dt1"> | 16 <details open id="dt1"> |
19 <summary id="summary1">summary 1</summary> | 17 <summary id="summary1">summary 1</summary> |
20 <summary id="summary2">summary 2</summary> | 18 <summary id="summary2">summary 2</summary> |
21 </details> | 19 </details> |
22 </body> | 20 </body> |
OLD | NEW |