Changeset 245316 in webkit


Ignore:
Timestamp:
May 14, 2019 9:00:05 PM (5 years ago)
Author:
Megan Gardner
Message:

Fix flakey test fast/events/autoscroll-when-input-is-offscreen.html
https://bugs.webkit.org/show_bug.cgi?id=197897
<rdar://problem/50306931>

Reviewed by Wenson Hsieh.

Programmatic scrolls are included in the transaction and we want to
ensure that they've been applied. Then we can be sure that the page
has finished scrolling and it's appropriate to test the page offset.

  • fast/events/autoscroll-when-input-is-offscreen.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245315 r245316  
     12019-05-14  Megan Gardner  <megan_gardner@apple.com>
     2
     3        Fix flakey test fast/events/autoscroll-when-input-is-offscreen.html
     4        https://bugs.webkit.org/show_bug.cgi?id=197897
     5        <rdar://problem/50306931>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        Programmatic scrolls are included in the transaction and we want to
     10        ensure that they've been applied. Then we can be sure that the page
     11        has finished scrolling and it's appropriate to test the page offset.
     12
     13        * fast/events/autoscroll-when-input-is-offscreen.html:
     14
    1152019-05-14  Shawn Roberts  <sroberts@apple.com>
    216
  • trunk/LayoutTests/fast/events/autoscroll-when-input-is-offscreen.html

    r244397 r245316  
    2020        await UIHelper.activateElementAndWaitForInputSession(document.getElementById('editable'));
    2121       
    22         var programaticScroll = 500;
    23         document.scrollingElement.scrollTop = programaticScroll;
     22        var programmaticScroll = 500;
     23        document.scrollingElement.scrollTop = programmaticScroll;
    2424        await UIHelper.enterText("Test");
    25 
    26         if (window.pageYOffset < programaticScroll)
     25        await UIHelper.ensurePresentationUpdate();
     26        if (window.pageYOffset < programmaticScroll)
    2727            output += 'PASS: page has scrolled back to the top to show the element that has text being entered into it.';
    2828        else
Note: See TracChangeset for help on using the changeset viewer.