blob: 0a6e579fd452cf064a762185b686498846645148 [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 tabindex=0 id="directory" role="directory">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that ARIA directory is exposed correctly.");
if (window.accessibilityController) {
var dir = document.getElementById("directory");
dir.focus();
dir = accessibilityController.focusedElement;
shouldBe("dir.role", "'AXRole: AXList'");
shouldBe("dir.subrole", "'AXSubrole: AXContentList'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>