blob: db3284f2a40342edef80a3357d00d94178427d69 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">
<p><a id="link" role="button" aria-owns="popup" aria-haspopup="true" tabindex="0" href="#">Click me</a></p>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that a popup button will return the text under the element for its title.");
if (window.accessibilityController) {
document.getElementById("link").focus();
var element = accessibilityController.focusedElement;
// The element should not be ignored (it should be a group)
shouldBe("element.title", "'AXTitle: Click me'");
}
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
</body>
</html>