blob: d209c248be78ee0ad2ae3a5217dc43e5a6721495 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
var successfullyParsed = false;
</script>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<input type="submit" tabindex="0" id="submitButton1">
<input type="submit" tabindex="0" id="submitButton2" value="non-default value">
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that a submit button will return its default value as the title.");
if (window.accessibilityController) {
document.getElementById("submitButton1").focus();
var button = accessibilityController.focusedElement;
shouldBe("button.title", "'AXTitle: Submit'");
document.getElementById("submitButton2").focus();
button = accessibilityController.focusedElement;
shouldBe("button.title", "'AXTitle: non-default value'");
}
successfullyParsed = true;
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>