fixed test cases 765 and 766 to match their testable statements
authorRichard Schwerdtfeger <schwer@us.ibm.com>
Mon, 08 Apr 2013 12:41:41 -0500
changeset 169 4fd8f7f396d3
parent 168 16ded12c0cd9
child 170 7ddec67ab35a
fixed test cases 765 and 766 to match their testable statements
ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-3.html
ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-4.html
--- a/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-3.html	Mon Apr 08 12:26:47 2013 -0500
+++ b/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-3.html	Mon Apr 08 12:41:41 2013 -0500
@@ -1,52 +1,80 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
 <html>
   <head>
-    <title>ARIA 1.0 Test Case C</title>
+    <title>ARIA 1.0 Test Case 765</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   </head>
   <body>
-    <h1>ARIA 1.0 Test Case C</h1>
+    <h1>ARIA 1.0 Test Case 765</h1>
     
-    <ul role="tree" id="ID_LISTBOX">
-      <li id="ID_TREEITEM_1" role="treeitem" tabindex="-1">Tree item 1
-        <ul role="tree">
-          <li id="ID_TREEITEM_11" role="treeitem" tabindex="-1">Tree item 11</li> 
-          <li id="ID_TREEITEM_12" role="treeitem" tabindex="-1">Tree item 12</li>           
-        </ul>
-      </li> 
-      <li id="ID_TREEITEM_2" role="treeitem" tabindex="-1">Tree item 2
-        <ul role="tree">
-          <li id="ID_TREEITEM_21" role="treeitem" tabindex="-1">Tree item 21</li> 
-          <li id="ID_TREEITEM_22" role="treeitem" tabindex="-1">Tree item 22</li>           
-        </ul>
-      </li> 
-      <li id="ID_TREEITEM_3" role="treeitem" tabindex="-1">Tree item 3
-        <ul role="tree">
-          <li id="ID_TREEITEM_31" role="treeitem" tabindex="-1">Tree item 31</li> 
-          <li id="ID_TREEITEM_32" role="treeitem" tabindex="-1">Tree item 32</li>           
-        </ul>
-      </li> 
-    </ul>
+    <div role="tree">
+      <div role="treeitem" aria-level="2" aria-setsize="3" aria-posinset="1" tabindex="-1">Option 1</div> 
+      <div role="treeitem" aria-level="2" aria-setsize="3" aria-posinset="2" tabindex="-1" id="ID_TARGET" >Option 2</div> 
+      <div role="treeitem" aria-level="2" aria-setsize="3" aria-posinset="3" tabindex="-1">Option 3</li> 
+    </div>
     
     <h2>Description</h2>
-    <p>A div element with the role='tree' has three child div elements with role='treeitem'.
-      Each of the child div elements contains a div element with the role of tree with two child div elements with the role='treeitem'. 
-      When focus is on the fifth div element with a role of "treeitem" in document order 
-      will be represented in the accessibility tree using the following table:</p>
-    
-    <p><a href="http://www.w3.org/TR/2012/WD-wai-aria-implementation-20120110/#mapping_state-property_table">http://www.w3.org/TR/2012/WD-wai-aria-implementation-20120110/#mapping_state-property_table</a></p>
+      <p>A div element with the role='tree' has three child div elements with role='treeitem', aria-setsize='3' 
+        and aria-level='2'.  The 1st child div element has aria-posinset='1', the 2nd child div element has 
+        aria-posinset='2' and the 3rd child div element has aria-posinset='3'.</p>
 
-    <h2>Accessibility API Information</h2>
-    <ul>
-      <li>set size: 2</li>
-      <li>position in set: 1</li>
-      <li>level of set in the hierarchy: 2</li>
-    </ul>
+      <h2>Expected Results</h2>
+      
+      <h3>MSAA + UIA Express</h3>
+      <ul>
+        <li>role="tree": ROLE_SYSTEM_OUTLINE</li>
+        <li>role="treeitem": ROLE_SYSTEM_OUTLINEITEM</li>
+        <li>LegacyIAccessible.Description will be in the form X of Y, 
+          where X is the value of aria-posinset and Y is the value of aria-setsize</li>
+        <li>Expose level=<value> in AriaProperites</li> 
+      </ul>
+      
+      <h3>MSAA + IAccessible2</h3>
+      <ul>
+        <li>role="tree": ROLE_SYSTEM_OUTLINE</li>
+        <li>role="treeitem": ROLE_SYSTEM_OUTLINEITEM</li>
+        <li>The structure should be reflected in the accessibility tree as directed by aria-posinset.</li>
+        <li>function groupPosition() should be available and have the following results:
+          <ul>
+            <li>groupLevel: 2</li>
+            <li>similarItemsInGroup: 3</li>
+            <li>positionInGroup: aria-posinest value</li>
+          </ul>
+        </li>
+      </ul>
+      
+      <h3>UIA</h3>
+      <ul>
+        <li>role="tree": Tree</li>
+        <li>role="treeitem": TreeItem</li>
+        <li>LegacyIAccessible.Description will be in the form X of Y, 
+          where X is the value of aria-posinset and Y is the value of aria-setsize</li>
+        <li>Expose level=<value> in AriaProperites</li> 
+      </ul>
+      
+      <h3>ATK/AT-SPI</h3>
+      <ul>
+        <li>role="tree": ROLE_TREE</li>
+        <li>role="treeitem": ROLE_TREEITEM</li>
+        <li>aria-setsize: not mapped to setsize:<value>.</li>
+        <li>aria-posinset: is mapped to  posinset: <value></li>
+        <li>aria-level: is mapped to level:<value></li>
+      </ul>
+      
+      <h3>AXAPI</h3>
+      <ul>
+        <li>role="tree": AXList and AXContentList = 'content list'</li>
+        <li>role="treeitem": AXGroup = </li>
+        <li>aria-setsize: is mapped to AXARIASetSize: <value></li>
+        <li>aria-posinset: is mapped to AXARIAPosInSet: <value></li>
+        <li>aria-level: is mapped to AXDisclosureLevel:<value></li>
+      </ul>
+      
     
     <script type="text/javascript">  
       
      function setFocus() {
-       var node = document.getElementById('ID_TREEITEM_21');  
+       var node = document.getElementById('ID_TARGET');  
        node.focus();
      }
      
--- a/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-4.html	Mon Apr 08 12:26:47 2013 -0500
+++ b/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-4.html	Mon Apr 08 12:41:41 2013 -0500
@@ -1,45 +1,101 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
 <html>
   <head>
-    <title>ARIA 1.0 Test Case D</title>
+    <title>ARIA 1.0 Test Case 766</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   </head>
   <body>
-    <h1>ARIA 1.0 Test Case D</h1>
+    <h1>ARIA 1.0 Test Case 766</h1>
     
-    <ul role="listbox" id="ID_LISTBOX">
-      <li id="ID_OPTION_1" role="option" tabindex="-1" aria-setsize="12" aria-level="1" aria-posinset="7">Option 7</li> 
-      <li id="ID_OPTION_2" role="option" tabindex="-1" aria-setsize="12" aria-level="1" aria-posinset="8">Option 8</li> 
-      <li id="ID_OPTION_3" role="option" tabindex="-1" aria-setsize="12" aria-level="1" aria-posinset="9">Option 9</li> 
-    </ul>
+    <div role="tree">
+      <div role="treeitem" aria-setsize="2" aria-posinset="1" tabindex="-1">Item 1
+        <div role="group">
+          <div role="treeitem" aria-setsize="2" aria-posinset="1" tabindex="-1">Item 1A</div>
+          <div role="treeitem" aria-setsize="2" aria-posinset="2" tabindex="-1">Item 1B</div>
+        </div>  
+      </div> 
+      <div role="treeitem" aria-setsize="2" aria-posinset="2" tabindex="-1">Item 2
+        <div role="group">
+          <div role="treeitem" aria-setsize="2" aria-posinset="1" tabindex="-1">Item 1A</div>
+          <div role="treeitem" aria-setsize="2" aria-posinset="2" tabindex="-1" id="ID_TARGET">Item 1B</div>
+        </div> 
+    </div>
     
     <h2>Description</h2>
-    <p>A ul element with the role='listbox' has three child li elements each with role='option'.
-      Each of the li elements with the role='option' have aria-setsize='12' attribute, aria-level='1' 
-      attribute and aria-posinset attribute numbered consecuatively from 7 to 9. When focus is on the 
-      second li element, the structure of the accessibility tree will be represented in the 
-      accessibility tree using the following table:</p>
-    
-    <p><a href="http://www.w3.org/TR/2012/WD-wai-aria-implementation-20120110/#mapping_state-property_table">http://www.w3.org/TR/2012/WD-wai-aria-implementation-20120110/#mapping_state-property_table</a></p>
+      <p>A div element with the role='tree' has two child div elements with role='treeitem' and aria-setsize='2'.
+        The child div element has aria-posinset='1', the 2nd child div element has aria-posinset='2'.
+        Each child div element has a child div element with the role="group" with two child div elements 
+        with the role ="treeitem' and aria-setsize='2'</p>
 
-    <h2>Accessibility API Information</h2>
-    <ul>
-      <li>set size: 12</li>
-      <li>position in set: 8</li>
-      <li>level of set in the hierarchy: 1</li>
-    </ul>
+
+      <h2>Expected Results</h2>
+      
+      <h3>MSAA + UIA Express</h3>
+      <ul>
+        <li>role="tree": ROLE_SYSTEM_OUTLINE</li>
+        <li>role="treeitem": ROLE_SYSTEM_OUTLINEITEM</li>
+        <li>LegacyIAccessible.Description will be in the form X of Y, 
+          where X is the value of aria-posinset and Y is the value of aria-setsize</li>
+        <li>Expose level=1 in AriaProperites for "Item 1" and "Item 2"</li> 
+        <li>Expose level=2 in AriaProperites for "Item 1A",  "Item 1B", "Item 2A" and "Item 2"</li> 
+      </ul>
+      
+      <h3>MSAA + IAccessible2</h3>
+      <ul>
+        <li>role="tree": ROLE_SYSTEM_OUTLINE</li>
+        <li>role="treeitem": ROLE_SYSTEM_OUTLINEITEM</li>
+        <li>The structure should be reflected in the accessibility tree as directed by aria-posinset.</li>
+        <li>function groupPosition() should be available and have the following results:
+          <ul>
+            <li>groupLevel: 1 for "Item 1" and "Item 2"</li>
+            <li>groupLevel: 2 for "Item 1A", "Item 1B", "Item 2A" and "Item 2B"</li>
+            <li>similarItemsInGroup: 3</li>
+            <li>positionInGroup: aria-posinest value</li>
+          </ul>
+        </li>
+      </ul>
+      
+      <h3>UIA</h3>
+      <ul>
+        <li>role="tree": Tree</li>
+        <li>role="treeitem": TreeItem</li>
+        <li>LegacyIAccessible.Description will be in the form X of Y, 
+          where X is the value of aria-posinset and Y is the value of aria-setsize</li>
+        <li>Expose level=1 in AriaProperites for "Item 1" and "Item 2"</li> 
+        <li>Expose level=2 in AriaProperites for "Item 1A",  "Item 1B", "Item 2A" and "Item 2"</li> 
+      </ul>
+      
+      <h3>ATK/AT-SPI</h3>
+      <ul>
+        <li>role="tree": ROLE_TREE</li>
+        <li>role="treeitem": ROLE_TREEITEM</li>
+        <li>aria-setsize: not mapped to setsize:<value>.</li>
+        <li>aria-posinset: is mapped to  posinset: <value></li>
+        <li>aria-level: 1 for "Item 1" and "Item 2"</li>
+        <li>aria-level: 2 for "Item 1A", "Item 1B", "Item 2A" and "Item 2B"</li>
+      </ul>
+      
+      <h3>AXAPI</h3>
+      <ul>
+        <li>role="tree": AXList and AXContentList = 'content list'</li>
+        <li>role="treeitem": AXGroup = </li>
+        <li>aria-setsize: is mapped to AXARIASetSize: <value></li>
+        <li>aria-posinset: is mapped to AXARIAPosInSet: <value></li>
+        <li>AXDisclosureLevel: 1 for "Item 1" and "Item 2"</li>
+        <li>AXDisclosureLevel: 2 for "Item 1A", "Item 1B", "Item 2A" and "Item 2B"</li>
+      </ul>
+      
     
     <script type="text/javascript">  
       
      function setFocus() {
-       var node = document.getElementById('ID_OPTION_2');  
+       var node = document.getElementById('ID_TARGET');  
        node.focus();
      }
      
      window.addEventListener('load', setFocus);
     </script>
   </body>
-  
 </html>