Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / file-upload-button-with-axpress.html
blob62f95876c2c64363e90acefc181caa5e60e192b5
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script src="../resources/js-test.js"></script>
6 <input id="filetype" type="file">
8 <div id="description"></div>
9 <div id="console"></div>
11 <script>
13 description("This tests that when AXPress is used DOMActivate will be handled by the input file type.")
15 if (window.testRunner && window.accessibilityController) {
16 window.testRunner.waitUntilDone();
18 var inputFile = document.getElementById("filetype");
20 inputFile.addEventListener("DOMActivate", function() {
21 debug("DOMActivate was called");
22 window.testRunner.notifyDone();
23 });
25 accessibilityController.accessibleElementById("filetype").press();
28 </script>
30 </body>
31 </html>