blob: 0eb445c8759f358f9257f52565c0253d1185bf75 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<ul>
<li id="listitem">
Some text.
<a href="#" role="button">Like</a>
</li>
</ul>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that list items on MacOS do not expose labeling information. MacOS expects only leaf-node type elements to do that.");
if (window.accessibilityController) {
// Both the title and description should be empty for the list item.
var listitem = accessibilityController.accessibleElementById("listitem");
shouldBe("listitem.description", "'AXDescription: '");
shouldBe("listitem.title", "'AXTitle: '");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>