setsize-posinset-level-1.html (2842B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>ARIA 1.0 Test Case 763</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 </head> 7 <body> 8 <h1>ARIA 1.0 Test Case 763</h1> 9 10 <div role="listbox"> 11 <div role="option" aria-setsize="3" aria-posinset="1" tabindex="-1">Option 1</div> 12 <div role="option" aria-setsize="3" aria-posinset="2" tabindex="-1" id="ID_TARGET">Option 2</div> 13 <div role="option" aria-setsize="3" aria-posinset="3" tabindex="-1">Option 3</div> 14 </div> 15 16 <h2>Description</h2> 17 <p>A div element with the role='listbox' has three child div elements each with 18 role='option' and aria-setsize='3'. The 1st child div element has aria-posinset='1', 19 the 2nd child div element has aria-posinset='2' and the 3rd child div element 20 has aria-posinset='3'.</p> 21 22 23 <h2>Expected Results</h2> 24 25 <h3>MSAA + UIA Express</h3> 26 <ul> 27 <li>role="tree": ROLE_SYSTEM_LIST</li> 28 <li>role="treeitem": ROLE_SYSTEM_LISTITEM</li> 29 <li>LegacyIAccessible.Description will be in the form X of Y, 30 where X is the value of aria-posinset and Y is the value of aria-setsize 31 </li> 32 </ul> 33 34 <h3>MSAA + IAccessible2</h3> 35 <ul> 36 <li>role="tree": ROLE_SYSTEM_LIST</li> 37 <li>role="treeitem": ROLE_SYSTEM_LISTITEM</li> 38 <li>The structure should be reflected in the accessibility tree as directed by aria-posinset.</li> 39 <li>function groupPosition() should be available and have the following results: 40 <ul> 41 <li>groupLevel: 1</li> 42 <li>similarItemsInGroup: 3</li> 43 <li>positionInGroup: aria-posinest value</li> 44 </ul> 45 </li> 46 </ul> 47 48 <h3>UIA</h3> 49 <ul> 50 <li>role="tree": List</li> 51 <li>role="treeitem": ListItem</li> 52 <li>LegacyIAccessible.Description will be in the form X of Y, 53 where X is the value of aria-posinset and Y is the value of aria-setsize</li> 54 </ul> 55 56 57 <h3>ATK/AT-SPI</h3> 58 <ul> 59 <li>role="tree": ROLE_LIST</li> 60 <li>role="treeitem": ROLE_LISTITEM</li> 61 <li>aria-setsize: not mapped to setsize: value</li> 62 <li>aria-posinset: is mapped to posinset: value</li> 63 </ul> 64 65 <h3>AXAPI</h3> 66 <ul> 67 <li>role="tree": AXList = 'list'</li> 68 <li>role="treeitem": AXGroup = 'group'</li> 69 <li>aria-setsize: is mapped to AXARIASetSize: value</li> 70 <li>aria-posinset: is mapped to AXARIAPosInSet: value</li> 71 </ul> 72 73 74 <script> 75 76 function setFocus() { 77 var node = document.getElementById('ID_TARGET'); 78 node.focus(); 79 } 80 81 window.addEventListener('load', setFocus); 82 </script> 83 </body> 84 </html>