# Testing: https://w3c.github.io/core-aam/#role-map-scrollbar
TEST_HTML = "
content
"
def test_atspi(atspi, session, inline):
session.url = inline(TEST_HTML)
# Spec:
# Role: ROLE_SCROLL_BAR
# 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.SCROLL_BAR
assert atspi.Accessible.get_value_iface(node) is not None
# def test_axapi(axapi, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # AXRole: AXScrollBar
# # AXSubrole:
# def test_ia2(ia2, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Role: ROLE_SYSTEM_SCROLLBAR
# # Interface: IAccessibleValue
# def test_uia(uia, session, inline):
# session.url = inline(TEST_HTML)
#
# # Spec:
# # Control Type: ScrollBar
# # Control Pattern: RangeValue