JS Test Harness: Remove more link tags
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / element-is-ignored.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 var successfullyParsed = false;
6 </script>
7 <script src="../../../fast/js/resources/js-test-pre.js"></script>
8 </head>
9 <body id="body">
10
11 test
12
13 <div id="element1" role="group" tabindex="0">text</div>
14
15 test
16
17 <p id="description"></p>
18 <div id="console"></div>
19
20 <script>
21
22     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).");
23
24     if (window.accessibilityController) {
25         document.getElementById("element1").focus();
26         var element1 = accessibilityController.focusedElement;
27
28         // The element should not be ignored (it should be a group)
29         shouldBeFalse("element1.isIgnored");
30
31         // Remove the element, it should become ignored
32         document.getElementById("body").removeChild(document.getElementById("element1"));
33         shouldBeTrue("element1.isIgnored");
34     }
35
36     successfullyParsed = true;
37 </script>
38
39 <script src="../../../fast/js/resources/js-test-post.js"></script>
40 </body>
41 </html>