Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / separator-values.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <div id="test1" role="separator" aria-valuemin="25" aria-valuemax="75" aria-valuenow="40" aria-valuetext="40%" tabindex="0"></div>
8 <div id="test2" role="separator" aria-valuemin="25" aria-valuemax="75" aria-valuenow="40" aria-valuetext="40%" /></div>
9 <div id="test3" role="separator" tabindex="0" aria-valuetext="50%" /></div>
10 <div id="test4" role="separator" aria-valuetext="50%" /></div>
11
12 <p id="description"></p>
13 <div id="console"></div>
14 <script>
15
16 description("This tests that separators support range value attributes, but only if focusable.");
17 if (window.testRunner && window.accessibilityController) {
18
19     for (var i = 1; i <= 4; i++) {
20         var element = document.getElementById("test" + i);
21         var tabindex = element.hasAttribute("tabindex") ? "'" + element.getAttribute("tabindex") + "'" : "(null)";
22         debug("\ntest" + i + " tabindex=" + tabindex);
23
24         var axElement = accessibilityController.accessibleElementById("test" + i);
25         debug("minValue: " + axElement.minValue);
26         debug("intValue: " + axElement.intValue);
27         debug("maxValue: " + axElement.maxValue);
28         debug(axElement.valueDescription);
29     }
30 }
31
32 </script>
33
34 <script src="../resources/js-test-post.js"></script>
35 </body>
36 </html>