blob: 0ee909f92e0fe5e261fb9daeba9836b696bf5f0b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<form>
<input id="button" type="submit" value="The Button"/>
</form>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the text of a button is exposed to Assistive Technologies.");
if (window.testRunner)
testRunner.dumpAsText();
if (window.accessibilityController) {
button = document.getElementById("button");
button.focus();
axButton = accessibilityController.focusedElement;
shouldBe("axButton.role", "'AXRole: AXButton'");
shouldBe("axButton.title", "'AXTitle: The Button'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>