diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level')
4 files changed, 321 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-1.html b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-1.html new file mode 100644 index 0000000000..04786b8066 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-1.html @@ -0,0 +1,86 @@ +<!DOCTYPE html> +<html> + <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 763</h1> + + <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</div> + </div> + + <h2>Description</h2> + <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>Expected Results</h2> + + <h3>MSAA + UIA Express</h3> + <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> + + function setFocus() { + var node = document.getElementById('ID_TARGET'); + node.focus(); + } + + window.addEventListener('load', setFocus); + </script> + </body> +</html> + + diff --git a/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-5.html b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-5.html new file mode 100644 index 0000000000..1ee058526b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-5.html @@ -0,0 +1,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> + + diff --git a/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-6.html b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-6.html new file mode 100644 index 0000000000..af8979c27d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/setsize-posinset-level-6.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<html> + <head> + <title>ARIA 1.0 Test Case 768</title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + </head> + <body> + <h1>ARIA 1.0 Test Case 768</h1> + + <div role="list"> + <div role="listitem" aria-level="2">Item 1</div> + <div role="listitem" aria-level="2">Item 2</div> + <div role="listitem" aria-level="2">Item 3</div> + <div role="listitem" aria-level="2">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' with a aria-level='2'.</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> + <li>Expose level=1 in AriaProperites for list items</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>groupLevel: 2</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> + <li>Expose level=1 in AriaProperites for list items</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: 4</li> + <li>posinset: position in list</li> + <li>level: 2 </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: position in list</li> + <li>AXDisclosureLevel: 2 </li> + </ul> + + </body> +</html> + + diff --git a/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/testcase-769.html b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/testcase-769.html new file mode 100644 index 0000000000..106813d281 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-aria/setsize-posinset-level/testcase-769.html @@ -0,0 +1,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> |