| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <input id="button" type="submit" value="The Button"/> |
| description("This tests that the text of a button is exposed to Assistive Technologies."); |
| if (window.accessibilityController) { |
| button = document.getElementById("button"); |
| axButton = accessibilityController.focusedElement; |
| shouldBe("axButton.role", "'AXRole: AXButton'"); |
| shouldBe("axButton.title", "'AXTitle: The Button'"); |
| <script src="../../resources/js-test-post.js"></script> |