1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <link rel=
"stylesheet" href=
"../fast/js/resources/js-test-style.css">
6 var successfullyParsed
= false;
8 <script src=
"../fast/js/resources/js-test-pre.js"></script>
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>
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;
37 <script src=
"../fast/js/resources/js-test-post.js"></script>