blob: 30daa1c8b29aa0ee47e2e5fd5d465ea812dbb35e [file] [log] [blame]
<!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>