summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-5.html
blob: 1ee058526bef3659cba60912d95e9fb225683a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html> 
<html>
   <head>
    <title>ARIA 1.0 Test Case 767</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <h1>ARIA 1.0 Test Case 767</h1>
    
    <div role="list">
      <div role="listitem">Item 1</div>
      <div role="listitem">Item 2</div>
      <div role="listitem">Item 3</div>
      <div role="listitem">Item 4</div>
    </div>
    
    <h2>Description</h2>
      <p>A div element with the role='list' with four child div elements with with the role='listitem'.</p>

      <h2>Expected Results</h2>
      
      <h3>MSAA + UIA Express</h3>
      <ul>
        <li>role="list": ROLE_SYSTEM_LIST + STATE_SYSTEM_READONLY</li>
        <li>role="listitem": ROLE_SYSTEM_LISTITEM + STATE_SYSTEM_READONLY</li>
        <li>LegacyIAccessible.Description will be in the form X of Y, 
          where X is the position in list and Y = 4</li>
      </ul>
      
      <h3>MSAA + IAccessible2</h3>
      <ul>
        <li>role="list": ROLE_SYSTEM_LIST + STATE_SYSTEM_READONLY</li>
        <li>role="listitem": ROLE_SYSTEM_LISTITEM + STATE_SYSTEM_READONLY</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>object attributes setsize:4, posinset:1-based position in the list></li> 
            <li>groupLevel: 0 or 1</li>
            <li>similarItemsInGroup: 4</li>
            <li>positionInGroup: position in list</li>
          </ul>
        </li>
      </ul>
      
      <h3>UIA</h3>
      <ul>
        <li>role="list": List</li>
        <li>role="listitem": Listitem</li>
        <li>LegacyIAccessible.Description will be in the form X of Y, 
            where X is the position in list and Y = 4</li>
      </ul>
    
      <h3>ATK/AT-SPI</h3>
      <ul>
        <li>role="list": ROLE_LIST and STATE_EDITABLE is not exposed</li>
        <li>role="listitem": ROLE_LISTITEM and STATE_EDITABLE is not exposed</li>
        <li>object attributes setsize:4, posinset:1-based position in the list></li>
      </ul>
      
      <h3>AXAPI</h3>
      <ul>
        <li>role="list": AXList and AXContentList = 'content list'</li>
        <li>role="listitem": AXGroup = nil</li>
        <li>AXARIASetSize: 4</li>
        <li>AXARIAPosInSet: 1 based position in list</li>
        <li>AXDisclosureLevel: 0 or 1 </li>
      </ul>
  </body>
</html>