Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /core-aam/aamtests/role/sectionheader.py - WPT Dashboard Interop Dashboard
TEST_HTML = "<div role='sectionheader' id='test'>content</div>"
def test_atspi(atspi, session, inline):
session.url = inline(TEST_HTML)
# Spec:
# Role: ROLE_HEADER
node = atspi.find_node("test", session.url)
assert atspi.Accessible.get_role(node) == atspi.Role.HEADER
# def test_axapi(axapi, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # AXRole: AXGroup
# # AXSubrole: AXSectionHeader
# # AXRoleDescription: section header
# def test_ia2(ia2, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Role: ROLE_SYSTEM_GROUPING
# # Object Attribute: xml-roles:sectionheader
def test_uia(uia, session, inline):
session.url = inline(TEST_HTML)
# Spec:
# Control Type: Group
# Localized Control Type: section header
node = uia.find_node("test", session.url)
assert node.CurrentControlType == uia.ControlType.Group
assert node.CurrentLocalizedControlType == "section header"