Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<html>
<head>
<title>menuitem posinset and setsize</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
<script>
setup({explicit_timeout: true, explicit_done: true });
var theTest = new ATTAcomm(
{
"steps" : [
{
"element" : "test",
"test" : {
"ATK" : [
[
"property",
"role",
"is",
"ROLE_MENU_ITEM"
],
[
"property",
"objectAttributes",
"contains",
"posinset:4"
],
[
"property",
"objectAttributes",
"contains",
"setsize:8"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXMenuItem"
],
[
"property",
"AXSubrole",
"is",
"<nil>"
],
[
"property",
"AXRoleDescription",
"is",
"menu item"
],
[
"property",
"AXARIAPosInSet",
"is",
"4"
],
[
"property",
"AXARIASetSize",
"is",
"8"
]
],
"IAccessible2" : [
[
"property",
"objectAttributes",
"contains",
"posinset:4"
],
[
"property",
"objectAttributes",
"contains",
"setsize:8"
],
[
"property",
"groupPosition",
"contains",
"similarItemsInGroup:8"
],
[
"property",
"groupPosition",
"contains",
"positionInGroup:4"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_MENUITEM"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"MenuItem"
],
[
"property",
"AriaProperties.posinset",
"is",
"4"
],
[
"property",
"AriaProperties.setsize",
"is",
"8"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "menuitem posinset and setsize"
}
) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for menuitem posinset and setsize.</p>
<ul role='menu'>Menu
<li role='menuitem'> option 1</li>
<li role='menuitem' id='test' aria-posinset='4' aria-setsize='8'> option 2</li>
<li role='menuitem'> option 3</li>
</ul>
<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>