Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / accessibility / aria-scrollbar-role.html
blob95953f389383d23aa3c6132c9df747043a3bacaf
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
5 <script>
6 var successfullyParsed = false;
7 </script>
8 <script src="../fast/js/resources/js-test-pre.js"></script>
9 </head>
10 <body id="body">
12 <div tabindex=0 id="scroller" aria-valuenow="55" role="scrollbar" aria-orientation="vertical">scrollbar</div>
15 <p id="description"></p>
16 <div id="console"></div>
18 <script>
20 description("This tests that the ARIA scrollbar role works correctly");
22 if (window.accessibilityController) {
24 document.getElementById("scroller").focus();
25 var scroller = accessibilityController.focusedElement;
26 shouldBe("scroller.role", "'AXRole: AXScrollBar'");
27 shouldBe("scroller.intValue", "55");
28 shouldBe("scroller.orientation", "'AXOrientation: AXVerticalOrientation'");
30 document.getElementById("scroller").setAttribute("aria-orientation", "horizontal");
31 shouldBe("scroller.orientation", "'AXOrientation: AXHorizontalOrientation'");
34 successfullyParsed = true;
35 </script>
37 <script src="../fast/js/resources/js-test-post.js"></script>
38 </body>
39 </html>