blob: 3f5e7f184804a2fd8888437c8aa0949b769bcff4 [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>