Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/menu-keydown-on-hidden-element.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 function test() 9 function test()
10 { 10 {
11 var el = document.getElementById('cont'); 11 var el = document.getElementById('cont');
12 el.lastChild.focus(); 12 el.lastChild.focus();
13 el.style.display = 'none'; 13 el.style.display = 'none';
14 window.setTimeout(contextClick, 0); 14 window.setTimeout(contextClick, 0);
15 } 15 }
16 16
17 function contextClick() 17 function contextClick()
18 { 18 {
19 if (window.eventSender) 19 if (window.eventSender)
20 eventSender.keyDown("menu"); 20 eventSender.keyDown("ContextMenu");
21 testRunner.notifyDone(); 21 testRunner.notifyDone();
22 } 22 }
23 </script> 23 </script>
24 </head> 24 </head>
25 <body onload="test()"> 25 <body onload="test()">
26 This tests that context menu key events are handled properly on elements tha t 26 This tests that context menu key events are handled properly on elements tha t
27 are not visible. 27 are not visible.
28 <div id="cont" tabindex="0">element <a href="#">link</a></div> 28 <div id="cont" tabindex="0">element <a href="#">link</a></div>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698