| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../resources/js-test-pre.js"></script> |
| </head> |
| <body id="body"> |
| |
| <p><a id="link" role="button" aria-owns="popup" aria-haspopup="true" tabindex="0" href="#">Click me</a></p> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| |
| 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> |
| |
| <script src="../resources/js-test-post.js"></script> |
| </body> |
| </html> |