blob: b055c5f35aac46f955ee93d0bdfd66efaafa5601 [file] [log] [blame]
cfleizach@apple.com25586e32012-11-26 06:07:47 +00001<!DOCTYPE HTML>
2<html>
3<body>
ap@apple.comfcade892017-05-19 23:37:59 +00004<script src="../resources/js-test.js"></script>
cfleizach@apple.com25586e32012-11-26 06:07:47 +00005
6<input id="filetype" type="file">
7
8<div id="description"></div>
9<div id="console"></div>
10
11<script>
12
13description("This tests that when AXPress is used DOMActivate will be handled by the input file type.")
14
15if (window.testRunner && window.accessibilityController) {
ap@apple.comfcade892017-05-19 23:37:59 +000016 jsTestIsAsync = true;
cfleizach@apple.com25586e32012-11-26 06:07:47 +000017
18 var inputFile = document.getElementById("filetype");
19
20 inputFile.addEventListener("DOMActivate", function() {
21 debug("DOMActivate was called");
ap@apple.comfcade892017-05-19 23:37:59 +000022 finishJSTest();
cfleizach@apple.com25586e32012-11-26 06:07:47 +000023 });
24
25 accessibilityController.accessibleElementById("filetype").press();
26}
27
28</script>
cfleizach@apple.com25586e32012-11-26 06:07:47 +000029</body>
30</html>