Unreviewed test fixing.
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Mar 2020 00:42:02 +0000 (00:42 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Mar 2020 00:42:02 +0000 (00:42 +0000)
Tests that fire multiple wheel event sequences need to call eventSender.monitorWheelEvents() between each one.

* tiled-drawing/scrolling/scroll-snap/scroll-snap-mandatory-borders.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258746 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/tiled-drawing/scrolling/scroll-snap/scroll-snap-mandatory-borders.html

index 858b411..a569df0 100644 (file)
@@ -1,3 +1,11 @@
+2020-03-19  Simon Fraser  <simon.fraser@apple.com>
+
+        Unreviewed test fixing.
+
+        Tests that fire multiple wheel event sequences need to call eventSender.monitorWheelEvents() between each one.
+
+        * tiled-drawing/scrolling/scroll-snap/scroll-snap-mandatory-borders.html:
+
 2020-03-19  Jacob Uphoff  <jacob_uphoff@apple.com>
 
         REGRESSION (r258707): storage/indexeddb/cursor-leak.html is flaky timing out
index 9c75258..3cb4a20 100644 (file)
 
             var startPosX = windowPosition.x + 0.5 * divTarget.clientWidth;
             var startPosY = windowPosition.y + 0.5 * divTarget.clientHeight;
+            eventSender.monitorWheelEvents();
             eventSender.mouseMoveTo(startPosX, startPosY); // Make sure we are just outside the iFrame
             eventSender.mouseScrollByWithWheelAndMomentumPhases(dx, dy, 'began', 'none');
             eventSender.mouseScrollByWithWheelAndMomentumPhases(dx, dy, 'changed', 'none');
 
             var startPosX = windowPosition.x + divTarget.clientWidth - 10;
             var startPosY = windowPosition.y + 50;
+            eventSender.monitorWheelEvents();
             eventSender.mouseMoveTo(startPosX, startPosY);
             eventSender.mouseScrollByWithWheelAndMomentumPhases(dx, dy, 'began', 'none');
             eventSender.mouseScrollByWithWheelAndMomentumPhases(dx, dy, 'changed', 'none');
         function onLoad()
         {
             if (window.eventSender) {
-                eventSender.monitorWheelEvents();
                 internals.setPlatformMomentumScrollingPredictionEnabled(false);
                 setTimeout(function() { scrollGlideTest('horizontalTarget') }, 0);
             } else {