AX: accessibilityIsIgnored is returning nil when return value expects a BOOL
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / element-is-ignored.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 test
13
14 <div id="element1" role="group" tabindex="0">text</div>
15
16 test
17
18 <p id="description"></p>
19 <div id="console"></div>
20
21 <script>
22
23     description("This tests that if you access an element that has been removed, it return the correct value for isIgnored (true, that is, it is ignored).");
24
25     if (window.accessibilityController) {
26         document.getElementById("element1").focus();
27         var element1 = accessibilityController.focusedElement;
28
29         // The element should not be ignored (it should be a group)
30         shouldBeFalse("element1.isIgnored");
31
32         // Remove the element, it should become ignored
33         document.getElementById("body").removeChild(document.getElementById("element1"));
34         shouldBeTrue("element1.isIgnored");
35     }
36
37     successfullyParsed = true;
38 </script>
39
40 <script src="../../../fast/js/resources/js-test-post.js"></script>
41 </body>
42 </html>