| <script src="../resources/js-test-pre.js"></script> |
| <div id="alert">alert</div> |
| function handleKeyDown(event) { |
| debug("Keycode received: code: " + event.keyCode + " key name: " + event.key); |
| if (window.accessibilityController) { |
| description("This test verifies that the dismiss action generates an escape key event."); |
| document.getElementById("alert").addEventListener('keydown', handleKeyDown); |
| accessibilityController.accessibleElementById("alert").dismiss(); |
| <script src="../resources/js-test-post.js"></script> |