| <!DOCTYPE HTML> |
| <html> |
| <body> |
| <script src="../resources/js-test.js"></script> |
| |
| <input id="filetype" type="file"> |
| |
| <div id="description"></div> |
| <div id="console"></div> |
| |
| <script> |
| |
| description("This tests that when AXPress is used DOMActivate will be handled by the input file type.") |
| |
| if (window.testRunner && window.accessibilityController) { |
| jsTestIsAsync = true; |
| |
| var inputFile = document.getElementById("filetype"); |
| |
| inputFile.addEventListener("DOMActivate", function() { |
| debug("DOMActivate was called"); |
| setTimeout(function() { |
| finishJSTest(); |
| }, 10); |
| }); |
| |
| accessibilityController.accessibleElementById("filetype").press(); |
| } |
| |
| </script> |
| </body> |
| </html> |