blob: 1d9b7371e1f45fc3ae7ee797f4c8c3bb7032255a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<div role="toolbar" aria-label="test toolbar">
<li>item one
<li>item tw
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the aria-toolbar role correctly returns a toolbar.");
if (window.accessibilityController) {
var body = document.getElementById("body");
body.focus();
var obj = accessibilityController.focusedElement.childAtIndex(0);
var succeeded = obj.role == "AXRole: AXToolbar";
shouldBe("succeeded", "true");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>