commit | f167c55b65ecf403ed00a92bcfcf75699164280f | [log] [tgz] |
---|---|---|
author | Alexandra Borovova <aborovova@mozilla.com> | Wed Nov 29 10:31:59 2023 |
committer | moz-wptsync-bot <wptsync@mozilla.com> | Thu Nov 30 05:06:44 2023 |
tree | 684b2098e07c7eeffb2ad4ab90ae3d3141ef4c45 | |
parent | b0fe43531b5c9b05701e377cec7858afbe80f192 [diff] |
[wdspec] Fix tests for triple clicks. Remove empty lines in the test data to avoid differences in `getSelection` behaviour. Differential Revision: https://phabricator.services.mozilla.com/D194615 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1795327 gecko-commit: f7027684c14d1538831a03f672c962a9658136c4 gecko-reviewers: webdriver-reviewers, whimboo
diff --git a/webdriver/tests/bidi/input/perform_actions/pointer_mouse_multiclick.py b/webdriver/tests/bidi/input/perform_actions/pointer_mouse_multiclick.py index 4f67f8f..87c2902 100644 --- a/webdriver/tests/bidi/input/perform_actions/pointer_mouse_multiclick.py +++ b/webdriver/tests/bidi/input/perform_actions/pointer_mouse_multiclick.py
@@ -85,9 +85,7 @@ desired outcome as taps are handled differently on mobile. """ url = inline( - f"""<div> - {lots_of_text} - </div>""" + f"""<div>{lots_of_text}</div>""" ) await bidi_session.browsing_context.navigate(
diff --git a/webdriver/tests/classic/perform_actions/pointer_tripleclick.py b/webdriver/tests/classic/perform_actions/pointer_tripleclick.py index eccfa67..301b503 100644 --- a/webdriver/tests/classic/perform_actions/pointer_tripleclick.py +++ b/webdriver/tests/classic/perform_actions/pointer_tripleclick.py
@@ -11,9 +11,7 @@ this will select a paragraph. On mobile this will not have the same desired outcome as taps are handled differently on mobile. """ - session.url = inline("""<div> - {} - </div>""".format(lots_of_text)) + session.url = inline("""<div>{}</div>""".format(lots_of_text)) div = session.find.css("div", all=False) div_rect = div.rect div_centre = {