Bug 1656585 [wpt PR 24834] - Fix failing test pointerevent_compat-mouse-events-when-removing-nodes, a=testonly
☠☠ backed out by a6e9c6ea61f6 ☠ ☠
authorLiviu Tinta <liviutinta@chromium.org>
Fri, 07 Aug 2020 12:46:28 +0000
changeset 543974 6b394e4ebfb90b888738108af48701c0b775cfaf
parent 543973 aa0aa516e19535130493223d272e18c0fbf3e403
child 543975 4d2ec067e793c2274fbcd7224e7ca70587bd059f
push id123742
push userwptsync@mozilla.com
push dateFri, 07 Aug 2020 23:31:06 +0000
treeherderautoland@9584ddf5d03a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1656585, 24834, 2332303, 795471
milestone81.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 1656585 [wpt PR 24834] - Fix failing test pointerevent_compat-mouse-events-when-removing-nodes, a=testonly Automatic update from web-platform-tests Fix failing test pointerevent_compat-mouse-events-when-removing-nodes action.pointerMove requires integers as arguments. Change-Id: I3efad46da26fee54ab875e8d88b72a73c91c44c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2332303 Commit-Queue: Liviu Tinta <liviutinta@chromium.org> Reviewed-by: Lan Wei <lanwei@chromium.org> Cr-Commit-Position: refs/heads/master@{#795471} -- wpt-commits: 5574dda72bad8c20f1859ccdec8a01f025b18ac5 wpt-pr: 24834
testing/web-platform/tests/pointerevents/compat/pointerevent_compat-mouse-events-when-removing-nodes.html
--- a/testing/web-platform/tests/pointerevents/compat/pointerevent_compat-mouse-events-when-removing-nodes.html
+++ b/testing/web-platform/tests/pointerevents/compat/pointerevent_compat-mouse-events-when-removing-nodes.html
@@ -59,28 +59,26 @@ function createGreenBoxAndAddListeners()
         }
       }
     });
   });
 }
 
 function performActions() {
   var rect = document.getElementById("green").getBoundingClientRect();
-  var x1 = rect.left + 5;
-  var y1 = rect.top + 5;
+  var x1 = Math.ceil(rect.left + 5);
+  var y1 = Math.ceil(rect.top + 5);
 
   return new test_driver.Actions()
               .pointerMove(0, 0)
-              .pointerMove(rect.left + 5, rect.top + 5)
-              .pointerDown(0)
-              .pointerUp(0)
+              .pointerMove(x1, y1)
+              .pointerDown()
+              .pointerUp()
               .send()
-              .then( () => {
-    return resolveWhen( () => receivedEvents.length == 6 );
-  });
+              .then( () => resolveWhen( () => receivedEvents.length == 6 ) );
 }
 
 function testScenario(targetEvent, expectedEvents, description) {
   promise_test(async () => {
     removeNodeEvent = targetEvent;
     receivedEvents = [];
     createGreenBoxAndAddListeners();