summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/testcase-769.html
blob: 106813d28195fc1fda7b9f04807ab436ab401b82 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html> 
<html>
  <head>
    <title>ARIA 1.0 Test Case 769</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <h1>ARIA 1.0 Test Case 769</h1>
    
    <div role="list">
      <div role="listitem">Item 1
        <div role="group">
          <div role="listitem">Item 1A</div>
          <div role="listitem">Item 1B</div>
        </div>
      </div>
      <div role="listitem">Item 2
        <div role="group">
          <div role="listitem">Item 2A</div>
          <div role="listitem">Item 2B</div>          
        </div>
      </div>
    </div>
    
    <h2>Description</h2>
    <p>A div element with the role='list' with two child div elements with with the role='listitem'.
      Each of the child div element also contain a div element with the role="group" with two child 
      div elements 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 = 2 (since all lists have 2 items)</li>
        <li>Expose level=1 in AriaProperites for list items for "Item 1" and "Item 2"</li> 
        <li>Expose level=2 in AriaProperites for list items for "Item 1A", "Item 1B", "Item 2A" and "Item 2B"</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>function groupPosition() should be available and have the following results:
          <ul>
            <li>groupLevel: 1 for "Item 1" and "Item 2" (since all lists have 2 items)</li>
            <li>groupLevel: 2 for "Item 1A", "Item 1B", "Item 2A" and "Item 2B"</li>
            <li>similarItemsInGroup: 2</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 = 2 (since all lists have 2 items)</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 2B"</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>setsize: 2 (since all lists have 2 items)</li>
        <li>posinset: position in list</li>
        <li>level: 1 for "Item 1" and "Item 2"</li>
        <li>level: 2 for "Item 1A", "Item 1B", "Item 2A" and "Item 2B"</li>
      </ul>
      
      <h3>AXAPI</h3>
      <ul>
        <li>role="list": AXList and AXContentList = 'content list'</li>
        <li>role="listitem" for "Item 1" and "Item 2": AXGroup = 'group'</li>
        <li>role="listitem" for "Item 1A", "Item 1B", "Item 2A" and "Item 2B": AXGroup = nil</li>
        <li>AXARIASetSize: 2 (since all lists have 2 items)</li>
        <li>AXARIAPosInSet: position in list</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>
          
  </body>
  
</html>