<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> | |
<head> | |
<script src="../resources/js-test-pre.js"></script> | |
</head> | |
<body id="body"> | |
<div id="button" tabindex=0 role="button" aria-label="title" aria-help="click here"> | |
button | |
</div> | |
<p id="description"></p> | |
<div id="console"></div> | |
<script> | |
description("This tests that aria-help attribute works as expected."); | |
if (window.accessibilityController) { | |
document.getElementById("button").focus(); | |
var button = accessibilityController.focusedElement; | |
shouldBe("button.helpText", "'AXHelp: click here'"); | |
} | |
</script> | |
<script src="../resources/js-test-post.js"></script> | |
</body> | |
</html> |