Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / menu-keydown-on-hidden-element.html
blob66db5eb4e9bc80cc90a9a212e99fd9fc6cf5c1e9
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function test()
11 var el = document.getElementById('cont');
12 el.lastChild.focus();
13 el.style.display = 'none';
14 window.setTimeout(contextClick, 0);
17 function contextClick()
19 if (window.eventSender)
20 eventSender.keyDown("menu");
21 testRunner.notifyDone();
23 </script>
24 </head>
25 <body onload="test()">
26 This tests that context menu key events are handled properly on elements that
27 are not visible.
28 <div id="cont" tabindex="0">element <a href="#">link</a></div>
29 </body>
30 </html>