MediaPlayerPrivateAVFoundationObjC's "periodic time observer" is unnecessary
[WebKit-https.git] / LayoutTests / accessibility / aria-hidden.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 <h1 aria-hidden="true">h1 <b>test</b></h1>
12 <h2 aria-hidden="false">h2</h2>
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18     description("This tests that the aria-hidden attribute works correctly with accessibility. The H1 element (and its children) should not appear in the AX hierarchy. The H2 element should be the first child");
19
20     if (window.accessibilityController) {
21
22           var body = document.getElementById("body");
23           body.focus();
24           var h2 = accessibilityController.focusedElement.childAtIndex(0);
25           var pattern = "AXTitle: h2";
26           var succeeded = h2.allAttributes().indexOf(pattern) != -1;
27           shouldBe("succeeded", "true");
28     }
29
30     successfullyParsed = true;
31 </script>
32
33 <script src="../fast/js/resources/js-test-post.js"></script>
34 </body>
35 </html>