blob: 572bceeb66129679ed151b00f555d392ba2f93af [file] [edit]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><!-- webkit-test-runner [ IsAccessibilityIsolatedTreeEnabled=true ] -->
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script src="../../resources/accessibility-helper.js"></script>
</head>
<body id="body">
<div id="content">
<div id="button" tabindex=0 role="button" aria-label="title" aria-help="click here">
button
</div>
</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 axButton = accessibilityController.focusedElement;
shouldBeEqualToString("platformValueForW3CName(axButton)", "title");
shouldBeEqualToString("platformValueForW3CDescription(axButton)", "click here");
document.getElementById("content").style.visibility = "hidden";
}
</script>
</body>
</html>