MediaPlayerPrivateAVFoundationObjC's "periodic time observer" is unnecessary
[WebKit-https.git] / LayoutTests / accessibility / aria-scrollbar-role.html
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">
11
12 <div tabindex=0 id="scroller" aria-valuenow="55" role="scrollbar" aria-orientation="vertical">scrollbar</div>
13
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19
20     description("This tests that the ARIA scrollbar role works correctly");
21
22     if (window.accessibilityController) {
23
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'");
29
30         document.getElementById("scroller").setAttribute("aria-orientation", "horizontal");
31         shouldBe("scroller.orientation", "'AXOrientation: AXHorizontalOrientation'");
32     }
33
34     successfullyParsed = true;
35 </script>
36
37 <script src="../fast/js/resources/js-test-post.js"></script>
38 </body>
39 </html>