Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /core-aam/aamtests/attribute/aria_current.py - WPT Dashboard Interop Dashboard
TEST_HTML = "<div role='group' id='test' aria-current='step'>content</div>"
def test_atspi(atspi, session, inline):
session.url = inline(TEST_HTML)
# Spec:
# Object Attribute: current:<value>
# State: STATE_ACTIVE
node = atspi.find_node("test", session.url)
assert "current:step" in atspi.Accessible.get_attributes_as_array(node)
assert "STATE_ACTIVE" in atspi.get_state_list_helper(node)
# def test_axapi(axapi, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Property: AXARIACurrent: <value>
# def test_ia2(ia2, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Object Attribute: current:<value>
# def test_uia(uia, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Property: AriaProperties.current: <value>