Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / axpress-on-aria-button.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7
8 <a id="button1" role="button">
9    <div>Upload</div>
10    <div><input type="file" onclick="pressPerformed(this);" title="Choose a file to upload" multiple="1" id="fileupload"></div>
11 </a>
12
13 <a id="button2" role="button">
14    <div>Upload</div>
15    <div><button onclick="pressPerformed(this);" id="button"></div>
16 </a>
17
18 <a id="button3" role="button">
19    <div>Upload</div>
20    <div><input type="checkbox" onclick="pressPerformed(this); finishJSTest();" id="checkbox"></div>
21 </a>
22
23 <p id="description"></p>
24 <div id="console"></div>
25
26 <script>
27     description("This tests that if a non-native action type is exposed as a control, then we will look for descendants to call press() on.");
28     
29     function pressPerformed(element) {
30         debug("Press performed on " + element.getAttribute("id"));
31     }
32
33     window.jsTestIsAsync = true;
34     if (window.accessibilityController) {
35         for (var k = 1; k <= 3; k++) {
36             var button = accessibilityController.accessibleElementById("button" + k);
37             button.press();
38         }
39     }
40 </script>
41
42 <script src="../resources/js-test-post.js"></script>
43 </body>
44 </html>