Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / file-upload-button-with-axpress.html
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script src="../resources/js-test.js"></script>
5
6 <input id="filetype" type="file">
7
8 <div id="description"></div>
9 <div id="console"></div>
10
11 <script>
12
13 description("This tests that when AXPress is used DOMActivate will be handled by the input file type.")
14
15 if (window.testRunner && window.accessibilityController) {
16     jsTestIsAsync = true;
17     
18     var inputFile = document.getElementById("filetype");
19
20     inputFile.addEventListener("DOMActivate", function() { 
21         debug("DOMActivate was called"); 
22         setTimeout(function() {
23             finishJSTest();
24         }, 10);
25     });
26
27     accessibilityController.accessibleElementById("filetype").press();
28 }
29
30 </script>
31 </body>
32 </html>