1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
8 <div tabindex=0 id="scroller" aria-valuenow="55" role="scrollbar" aria-orientation="vertical">scrollbar</div>
11 <p id="description"></p>
12 <div id="console"></div>
16 description("This tests that the ARIA scrollbar role works correctly");
18 if (window.accessibilityController) {
20 document.getElementById("scroller").focus();
21 var scroller = accessibilityController.focusedElement;
22 shouldBe("scroller.role", "'AXRole: AXScrollBar'");
23 shouldBe("scroller.intValue", "55");
24 shouldBe("scroller.orientation", "'AXOrientation: AXVerticalOrientation'");
26 document.getElementById("scroller").setAttribute("aria-orientation", "horizontal");
27 shouldBe("scroller.orientation", "'AXOrientation: AXHorizontalOrientation'");
32 <script src="../fast/js/resources/js-test-post.js"></script>