| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <script> | |
| 3 if (window.testRunner) | |
| 4 testRunner.dumpAsText(); | |
| 5 | |
| 6 </script> | |
| 7 <body id="body"> | |
| 8 <!-- This test ensures that a plugin that is not accessible, will not appear
in the AX hierachy--> | |
| 9 | |
| 10 <a href="#a">more</a><BR> | |
| 11 <div id="hiddenDiv" style="visibility: hidden; left: 0px; "><a href="#b">hel
lo</a></div> | |
| 12 | |
| 13 <div id="result"></div> | |
| 14 | |
| 15 | |
| 16 <script> | |
| 17 if (window.accessibilityController) { | |
| 18 var result = document.getElementById("result"); | |
| 19 | |
| 20 var body = document.getElementById("body"); | |
| 21 body.focus(); | |
| 22 var links1 = accessibilityController.focusedElement.attributesOfDocu
mentLinks(); | |
| 23 | |
| 24 // toggle the div | |
| 25 var divElement = document.getElementById("hiddenDiv"); | |
| 26 divElement.style.visibility = "visible"; | |
| 27 | |
| 28 accessibilityController.focusedElement.attributesOfChildren(); | |
| 29 var links2 = accessibilityController.focusedElement.attributesOfDocu
mentLinks(); | |
| 30 if (links1 != links2) { | |
| 31 result.innerHTML += "PASS"; | |
| 32 } | |
| 33 else { | |
| 34 result.innerHTML += "FAIL - The div's visibility was toggled, bu
t the new link did not appear\n\n"; | |
| 35 result.innerHTML += "Links1: " + links1 + "\n\nLinks2: " + links
2 + "\n\n"; | |
| 36 } | |
| 37 } | |
| 38 </script> | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |