Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-checkbox-text.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div role="radiobuttongroup">
9         <div role="checkbox" id="check1" tabindex="0" aria-checked="true">One</div>
10         <div role="checkbox" id="check2" tabindex="0">Two</div>
11         <div role="checkbox" id="check3" tabindex="0" id="foo" aria-labelledby="foo">Three</div>
12 </div>
13
14 <p id="description"></p>
15 <div id="console"></div>
16
17 <script>
18
19     description("This tests that ARIA checkboxes use accessible name computation.");
20
21     if (window.accessibilityController) {
22
23           var checkbox = document.getElementById("check1");
24           checkbox.focus();
25           checkbox = accessibilityController.focusedElement;
26           debug("checkbox.title is " + checkbox.title);
27
28           checkbox = document.getElementById("check2");
29           checkbox.focus();
30           checkbox = accessibilityController.focusedElement;
31           debug("checkbox.title is " + checkbox.title);
32
33           checkbox = document.getElementById("check3");
34           checkbox.focus();
35           checkbox = accessibilityController.focusedElement;
36           debug("checkbox.title is " + checkbox.title);
37     }
38
39 </script>
40
41 <script src="../resources/js-test-post.js"></script>
42 </body>
43 </html>