| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../resources/js-test.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <form> | |
| 8 <select id="target"> | |
| 9 <option accesskey="x">foo</option> | |
| 10 </select> | |
| 11 </form> | |
| 12 <p id="description"></p> | |
| 13 <div id="console"></div> | |
| 14 <script> | |
| 15 description('This test is to ensure that we do not crash when selecting an item
from a menu list in a list box through an access key.') | |
| 16 | |
| 17 if (window.testRunner) { | |
| 18 testRunner.dumpAsText(); | |
| 19 | |
| 20 var selectElement = document.getElementById('target'); | |
| 21 selectElement.focus(); | |
| 22 if (window.eventSender) { | |
| 23 eventSender.keyDown('x', 'accessKey'); | |
| 24 testPassed('Did not crash'); | |
| 25 } | |
| 26 } | |
| 27 </script> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |