Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-checked-mixed-value.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 id="content">
9
10 <div id="element1" role="radio" aria-checked="mixed"></div> <!-- treat as false for radio roles -->
11 <div id="element2" role="menuitemradio" aria-checked="mixed"></div> <!-- treat as false for menuitemradio roles -->
12 <div id="element3" role="checkbox" aria-checked="mixed"></div>
13 <div id="element4" role="menuitemcheckbox" aria-checked="mixed"></div>
14 <div id="element5" role="checkbox" indeterminate="true"></div>
15 <div id="element6" role="checkbox" indeterminate="false"></div>
16
17 </div>
18
19 <p id="description"></p>
20 <div id="console"></div>
21
22 <script>
23
24     description("Tests whether mixed values are reported properly.");
25
26     if (window.accessibilityController) {
27           for (var i = 1; i < 7; i++) {
28               var element = accessibilityController.accessibleElementById("element" + i);
29               debug("Role: " + element.role);
30               debug("Mixed: " + element.isIndeterminate);
31               debug("\n");
32           }
33
34           document.getElementById("content").style.visibility = "hidden";
35     }
36
37 </script>
38
39 <script src="../resources/js-test-post.js"></script>
40 </body>
41 </html>