4 testRunner.dumpAsText();
8 <!-- This test ensures that a plugin that is not accessible, will not appear in the AX hierachy-->
10 <a href="#a">more</a><BR>
11 <div id="hiddenDiv" style="visibility: hidden; left: 0px; "><a href="#b">hello</a></div>
13 <div id="result"></div>
17 if (window.accessibilityController) {
18 var result = document.getElementById("result");
20 var body = document.getElementById("body");
22 var links1 = accessibilityController.focusedElement.attributesOfDocumentLinks();
25 var divElement = document.getElementById("hiddenDiv");
26 divElement.style.visibility = "visible";
28 accessibilityController.focusedElement.attributesOfChildren();
29 var links2 = accessibilityController.focusedElement.attributesOfDocumentLinks();
30 if (links1 != links2) {
31 result.innerHTML += "PASS";
34 result.innerHTML += "FAIL - The div's visibility was toggled, but the new link did not appear\n\n";
35 result.innerHTML += "Links1: " + links1 + "\n\nLinks2: " + links2 + "\n\n";