Skip to content

Commit

Permalink
Bug 1850166 - [wdspec] Add test for "invalid argument" for wheel scro…
Browse files Browse the repository at this point in the history
…ll action and origin type "pointer". r=webdriver-reviewers,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D187392
  • Loading branch information
whimboo committed Sep 8, 2023
1 parent 0f3b8f3 commit 10c80b9
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,30 @@ def test_wheel_action_scroll_origin_invalid_value(session, value):
assert_error(response, "invalid argument")


def test_wheel_action_scroll_origin_pointer_not_supported(session):
# Pointer origin isn't currently supported for wheel input source
# See: https://github.com/w3c/webdriver/issues/1758

actions = [
{
"type": "wheel",
"id": "foo",
"actions": [
{
"type": "scroll",
"x": 0,
"y": 0,
"deltaX": 0,
"deltaY": 0,
"origin": "pointer",
}
],
}
]
response = perform_actions(session, actions)
assert_error(response, "invalid argument")


@pytest.mark.parametrize(
"value",
[
Expand Down

0 comments on commit 10c80b9

Please sign in to comment.