fixed test cases 763 and 764 to match the testable statements
authorRichard Schwerdtfeger <schwer@us.ibm.com>
Mon, 08 Apr 2013 12:26:47 -0500
changeset 168 16ded12c0cd9
parent 167 2df4903d102e
child 169 4fd8f7f396d3
fixed test cases 763 and 764 to match the testable statements
ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-1.html
ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-2.html
--- a/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-1.html	Sun Apr 07 23:28:22 2013 -0400
+++ b/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-1.html	Mon Apr 08 12:26:47 2013 -0500
@@ -1,43 +1,86 @@
 <!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 A</title>
+  <head>  
+    <title>ARIA 1.0 Test Case 763</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   </head>
   <body>
-    <h1>ARIA 1.0 Test Case A</h1>
+    <h1>ARIA 1.0 Test Case 763</h1>
     
-    <div role="listbox" id="ID_LISTBOX">
-      <div id="ID_OPTION_1" role="option" tabindex="-1">Option 1</div> 
-      <div id="ID_OPTION_2" role="option" tabindex="-1">Option 2</div> 
-      <div id="ID_OPTION_3" role="option" tabindex="-1">Option 3</li> 
+    <div role="listbox">
+      <div role="option" aria-setsize="3" aria-posinset="1" tabindex="-1">Option 1</div> 
+      <div role="option" aria-setsize="3" aria-posinset="2" tabindex="-1" id="ID_TARGET">Option 2</div> 
+      <div role="option" aria-setsize="3" aria-posinset="3" tabindex="-1">Option 3</li> 
     </div>
     
     <h2>Description</h2>
-    <p>A div element with the role='listbox' has three child div elements each with role='option'.
-      When focus is on the second child div 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='listbox' has three child div elements each with 
+        role='option' and aria-setsize='3'.   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>
+
+      <h2>Expected Results</h2>
+      
+      <h3>MSAA + UIA Express</h3>
       <ul>
-      <li>set size: 3</li>
-      <li>position in set: 2</li>
-      <li>level of set in the hierarchy: 1</li>
-    </ul>
+      <li>role="tree": ROLE_SYSTEM_LIST</li>
+      <li>role="treeitem": ROLE_SYSTEM_LISTITEM</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>
+      </ul>
+      
+      <h3>MSAA + IAccessible2</h3>
+      <ul>
+        <li>role="tree": ROLE_SYSTEM_LIST</li>
+        <li>role="treeitem": ROLE_SYSTEM_LISTITEM</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</li>
+            <li>similarItemsInGroup: 3</li>
+            <li>positionInGroup: aria-posinest value</li>
+          </ul>
+        </li>
+      </ul>
+      
+      <h3>UIA</h3>
+      <ul>
+        <li>role="tree": List</li>
+        <li>role="treeitem": ListItem</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>
+      </ul>
+      
+      
+      <h3>ATK/AT-SPI</h3>
+      <ul>
+        <li>role="tree": ROLE_LIST</li>
+        <li>role="treeitem": ROLE_LISTITEM</li>
+        <li>aria-setsize: not mapped to setsize: value</li>
+        <li>aria-posinset: is mapped to  posinset: value</li>
+      </ul>
+      
+      <h3>AXAPI</h3>
+      <ul>
+        <li>role="tree": AXList = 'list'</li>
+        <li>role="treeitem": AXGroup = 'group'</li>
+        <li>aria-setsize: is mapped to AXARIASetSize: value</li>
+        <li>aria-posinset: is mapped to AXARIAPosInSet: value</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>
 
 
--- a/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-2.html	Sun Apr 07 23:28:22 2013 -0400
+++ b/ARIA/1.0/tests/test-files/setsize-posinset-level/setsize-posinset-level-2.html	Mon Apr 08 12:26:47 2013 -0500
@@ -1,43 +1,84 @@
 <!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 B</title>
+  <head>  
+    <title>ARIA 1.0 Test Case 764</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   </head>
   <body>
-    <h1>ARIA 1.0 Test Case B</h1>
+    <h1>ARIA 1.0 Test Case 764</h1>
     
-    <ul role="tree" id="ID_LISTBOX">
-      <li id="ID_TREEITEM_1" role="treeitem" tabindex="-1">Tree item 1</li> 
-      <li id="ID_TREEITEM_2" role="treeitem" tabindex="-1">Tree item 2</li> 
-      <li id="ID_TREEITEM_3" role="treeitem" tabindex="-1">Tree item 3</li> 
-    </ul>
+    <div role="tree">
+      <div role="treeitem" aria-setsize="3" aria-posinset="1" tabindex="-1">Option 1</div> 
+      <div role="treeitem" aria-setsize="3" aria-posinset="2" tabindex="-1" id="ID_TARGET">Option 2</div> 
+      <div role="treeitem" 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 each with role='treeitem'.
-      When focus is on the third child div 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>
 
-    <h2>Accessibility API Information</h2>
+    <p>A div element with the role='tree' has three child div elements with role='treeitem' 
+       and aria-setsize='3'.  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>Expected Results</h2>
+      
+    <h3>MSAA + UIA Express</h3>
     <ul>
-      <li>set size: 3</li>
-      <li>position in set: 2</li>
-      <li>level of set in the hierarchy: 1</li>
+      <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>
     </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</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>
+    </p>
+      
+    <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>
+    </ul>
+      
+      <h3>AXAPI</h3>
+      <ul>
+        <li>role="tree": AXOutline = 'outline'</li>
+        <li>role="treeitem": AXRow, AXOutlineRow = 'outline row'</li>
+        <li>aria-setsize: is mapped to AXARIASetSize: <value></li>
+        <li>aria-posinset: is mapped to AXARIAPosInSet: <value></li>
+      </ul>
+      
     
     <script type="text/javascript">  
       
      function setFocus() {
-       var node = document.getElementById('ID_TREEITEM_2');  
+       var node = document.getElementById('ID_TARGET');  
        node.focus();
      }
      
      window.addEventListener('load', setFocus);
     </script>
   </body>
-  
-</html>
+<html>