REGRESSION (r167689): Hovering file name in a file input causes a crash
[WebKit-https.git] / LayoutTests / fast / events / shadow-event-path.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test records target and relatedTarget at each element while dispatching a mouse click event at an input element.</p>
5 <div id="detailsContainer"><details><summary><div id="divInsideSummary"><input id="target" type="text" size="10"></summary></div></detials></div>
6 <pre id="log"></pre>
7 <script src="resources/shadow-event-path-shared.js"></script>
8 <script>
9
10 var detailsContainer = document.getElementById('detailsContainer');
11 log('Content:' + detailsContainer.outerHTML + '\n');
12
13 if (window.testRunner && !window.eventSender)
14     log('This test requires eventSender.');
15 else if (window.eventSender) {
16     var target = document.getElementById('target');
17     eventSender.mouseMoveTo(target.offsetLeft + target.offsetWidth / 2, target.offsetTop + target.offsetHeight / 2);
18     eventSender.mouseMoveTo(target.offsetLeft + target.offsetWidth + 100, target.offsetTop + target.offsetHeight / 2);
19     eventSender.mouseDown();
20     eventSender.mouseUp();
21 }
22
23 </script>
24 </body>
25 </html>