Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / button-press-action.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.dumpAsText();
5 </script>
6 <body id="body">
7
8     <!-- This test makes sure that a <button> element exposes AXPress as an action -->
9  
10     <button type="button" id="button">Click me</button>
11
12     <div id="result"></div>
13      
14     <script>
15         if (window.accessibilityController) {
16             var result = document.getElementById("result");
17
18             var button = document.getElementById("button");
19             button.focus();
20             button = accessibilityController.focusedElement;
21
22             if (button.isPressActionSupported()) {
23                 result.innerText += "Test passed\n";
24             }
25             else {
26                  result.innerText += "Test failed\n";
27             }
28         }
29     </script>
30 </body>
31 </html>