Bug 1660849 [wpt PR 25212] - Reland "Support triple click in Chromedriver PerformActions", a=testonly
authorLan Wei <lanwei@chromium.org>
Wed, 26 Aug 2020 08:57:40 +0000
changeset 546527 81579115405e3966f05bf2ce6bb1812226bfcdb7
parent 546526 b743374dc46bd81dc1b3b3d2d8902e2585a26862
child 546528 9ec943a849f9a8f17f66273e8a67141e387ac49c
push id37735
push userabutkovits@mozilla.com
push dateThu, 27 Aug 2020 21:29:40 +0000
treeherdermozilla-central@109f3a4de567 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1660849, 25212, 1119679, 2368335, 801082
milestone82.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1660849 [wpt PR 25212] - Reland "Support triple click in Chromedriver PerformActions", a=testonly Automatic update from web-platform-tests Reland "Support triple click in Chromedriver PerformActions" When we are using PerformActions from ChromeDriver to simulate three mouse click, it only set the click count to 2, not 3, so this test fails third_party/blink/web_tests/external/wpt/webdriver/tests/perform_actions /pointer_tripleclick.py. PerformActions should keep the mouse click count and decide if we should increase the count or set to 1 when we have a mouse press based on the interval of two mouse presses and difference between the current mouse positions and the last one. We should keep the click count in the session, and calculate the new click count based on the count stored in the session. Bug: 1119679 Change-Id: Iadac8e0f7dd13aebad6dc06c48c572426709a065 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2368335 Reviewed-by: John Chen <johnchen@chromium.org> Reviewed-by: Lan Wei <lanwei@chromium.org> Commit-Queue: Lan Wei <lanwei@chromium.org> Cr-Commit-Position: refs/heads/master@{#801082} -- wpt-commits: 6484354f7ec5c70b6d6af299f429a658370f06df wpt-pr: 25212
testing/web-platform/tests/webdriver/tests/perform_actions/pointer_tripleclick.py
--- a/testing/web-platform/tests/webdriver/tests/perform_actions/pointer_tripleclick.py
+++ b/testing/web-platform/tests/webdriver/tests/perform_actions/pointer_tripleclick.py
@@ -1,15 +1,15 @@
 from tests.perform_actions.support.refine import filter_dict, get_events
 from tests.support.asserts import assert_move_to_coordinates
 from tests.support.inline import inline
 
 lots_of_text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor "\
                "incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud "\
-               " exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
+               "exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
 
 
 def test_tripleclick_at_coordinates(session, mouse_chain):
     """
         This test does a triple click on a coordinate. On desktop platforms
         this will select a paragraph. On mobile this will not have the same
         desired outcome as taps are handled differently on mobile.
     """