Fix flaky LayoutTests/fast/events/autoscroll-when-input-is-offscreen.html
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Apr 2019 06:02:50 +0000 (06:02 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Apr 2019 06:02:50 +0000 (06:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196840

Reviewed by Tim Horton.

Use more stable test infrastructure to conduct input tests.

* fast/events/autoscroll-when-input-is-offscreen.html:

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

LayoutTests/ChangeLog
LayoutTests/fast/events/autoscroll-when-input-is-offscreen.html

index 6f06c59..cf0e853 100644 (file)
@@ -1,3 +1,14 @@
+2019-04-11  Megan Gardner  <megan_gardner@apple.com>
+
+        Fix flaky LayoutTests/fast/events/autoscroll-when-input-is-offscreen.html
+        https://bugs.webkit.org/show_bug.cgi?id=196840
+
+        Reviewed by Tim Horton.
+
+        Use more stable test infrastructure to conduct input tests.
+
+        * fast/events/autoscroll-when-input-is-offscreen.html:
+
 2019-04-11  Zalan Bujtas  <zalan@apple.com>
 
         Add @page margin support
index bf469e9..f558ed1 100644 (file)
             return;
     
         var output = '';
-        var firstTargetRect = document.getElementById('editable').getBoundingClientRect();
 
-        var pressPointX = firstTargetRect.x;
-        var pressPointY = firstTargetRect.y;
-
-    
-        await tapAtPoint(pressPointX,pressPointY);
+        await UIHelper.activateElementAndWaitForInputSession(document.getElementById('editable'));
         
         var programaticScroll = 500;
         document.scrollingElement.scrollTop = programaticScroll;