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/role/slider.py - WPT Dashboard Interop Dashboard
TEST_HTML = "<div role='slider' id='test'>content</div>"
def test_atspi(atspi, session, inline):
session.url = inline(TEST_HTML)
# Spec:
# Role: ROLE_SLIDER
# Interface: Value
# Because WAI-ARIA does not support modifying the value via the accessibility API, user agents MUST return false for all Value methods that provide a means to modify the value.
node = atspi.find_node("test", session.url)
assert atspi.Accessible.get_role(node) == atspi.Role.SLIDER
assert atspi.Accessible.get_value_iface(node) is not None
# def test_axapi(axapi, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # AXRole: AXSlider
# # AXSubrole: <nil>
# def test_ia2(ia2, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Role: ROLE_SYSTEM_SLIDER
# # Interface: IAccessibleValue
# def test_uia(uia, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Control Type: Slider
# # Control Pattern: RangeValue