REGRESSION (r167689): Hovering file name in a file input causes a crash
[WebKit-https.git] / LayoutTests / fast / events / shadow-event-path-2.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"><input id="target" type="file"></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     for (var x = -10; x <= 500; x += 10)
18         eventSender.mouseMoveTo(target.offsetLeft + x, target.offsetTop + target.offsetHeight / 2);
19 }
20
21 </script>
22 </body>
23 </html>