blob: 61561d4af9d86418617c06eb3c066788b0b4c954 [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) {
testRunner.waitUntilDone();
var inputFile = document.getElementById("filetype");
inputFile.addEventListener("DOMActivate", function() {
debug("DOMActivate was called");
testRunner.notifyDone();
});
accessibilityController.accessibleElementById("filetype").press();
}
</script>
</body>
</html>