| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <form> | 7 <form> |
| 8 <select id="target"> | 8 <select id="target"> |
| 9 <option accesskey="x">foo</option> | 9 <option accesskey="x">foo</option> |
| 10 </select> | 10 </select> |
| 11 </form> | 11 </form> |
| 12 <p id="description"></p> | 12 <p id="description"></p> |
| 13 <div id="console"></div> | 13 <div id="console"></div> |
| 14 <script> | 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.') | 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 | 16 |
| 17 if (window.testRunner) { | 17 if (window.testRunner) { |
| 18 testRunner.dumpAsText(); | 18 testRunner.dumpAsText(); |
| 19 | 19 |
| 20 var selectElement = document.getElementById('target'); | 20 var selectElement = document.getElementById('target'); |
| 21 selectElement.focus(); | 21 selectElement.focus(); |
| 22 if (window.eventSender) { | 22 if (window.eventSender) { |
| 23 eventSender.keyDown('x', 'accessKey'); | 23 eventSender.keyDown('x', 'accessKey'); |
| 24 testPassed('Did not crash'); | 24 testPassed('Did not crash'); |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 </script> | 27 </script> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |