MediaPlayerPrivateAVFoundationObjC's "periodic time observer" is unnecessary
[WebKit-https.git] / LayoutTests / accessibility / aria-list-and-listitem.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 role="list">
13 <div role="listitem" aria-label="item 1"><img src='#' width=100 height=100></div>
14 <div role="listitem" aria-label="item 2"><img src='#' width=100 height=100></div>
15 </div>
16
17 <p id="description"></p>
18 <div id="console"></div>
19
20 <script>
21
22     description("This tests that the ARIA roles of list and listitem map correctly to Mac accessibility roles.");
23
24     if (window.accessibilityController) {
25
26           // this text field should be required.
27           document.getElementById("body").focus();
28           var obj = accessibilityController.focusedElement;
29
30           shouldBe("obj.childAtIndex(0).role", "'AXRole: AXList'");
31           shouldBe("obj.childAtIndex(0).childAtIndex(0).role", "'AXRole: AXGroup'");
32           shouldBe("obj.childAtIndex(0).childAtIndex(1).role", "'AXRole: AXGroup'");
33     }
34
35     successfullyParsed = true;
36 </script>
37
38 <script src="../fast/js/resources/js-test-post.js"></script>
39 </body>
40 </html>