Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / search-shadow-host-crash.html
blobf8d97d5d731ad8a8dc94739a4b20432df69b67a9
1 <html>
2 <head>
3 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function clickOn(element)
10 if (!window.eventSender)
11 return;
13 var x = element.offsetLeft + element.offsetWidth / 2;
14 var y = element.offsetTop + element.offsetHeight / 2;
15 eventSender.mouseMoveTo(x, y);
16 eventSender.mouseDown();
17 eventSender.mouseUp();
20 function runTest()
22 clickOn(document.getElementsByTagName('input')[0]);
25 </script>
26 </head>
27 <body onload="runTest()">
28 <p>Click on the search box. This test passes if does not crash.</p>
29 <input type="search" onclick="this.style.display = 'none';">
30 </body>
31 </html>