| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <p><a id="link" role="button" aria-owns="popup" aria-haspopup="true" tabindex="0" href="#">Click me</a></p> |
| description("This tests that a popup button will return the text under the element for its title."); |
| if (window.accessibilityController) { |
| document.getElementById("link").focus(); |
| var element = accessibilityController.focusedElement; |
| // The element should not be ignored (it should be a group) |
| shouldBe("element.title", "'AXTitle: Click me'"); |
| <script src="../resources/js-test-post.js"></script> |