⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283395 in webkit


Ignore:
Timestamp:
Oct 1, 2021, 1:32:43 PM (5 years ago)
Author:
Simon Fraser
Message:

Fix flaky test: fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered.html
https://bugs.webkit.org/show_bug.cgi?id=231093

Reviewed by Alan Bujtas.

This test dumped overlay scrollbar state, but that state is timing-dependent since
AppKit changes it via animations. Rather than printing the full state, just
print the expanded and enabled states, since those are the states necessary for
the test to pass.

  • fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered-expected.txt:
  • fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r283388 r283395  
     12021-10-01  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix flaky test: fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered.html
     4        https://bugs.webkit.org/show_bug.cgi?id=231093
     5
     6        Reviewed by Alan Bujtas.
     7
     8        This test dumped overlay scrollbar state, but that state is timing-dependent since
     9        AppKit changes it via animations. Rather than printing the full state, just
     10        print the expanded and enabled states, since those are the states necessary for
     11        the test to pass.
     12
     13        * fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered-expected.txt:
     14        * fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered.html:
     15
    1162021-10-01  Ayumi Kojima  <ayumi_kojima@apple.com>
    217
  • trunk/LayoutTests/fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered-expected.txt

    r261132 r283395  
    77enabled
    88Hovering vertical scrollbar should show expanded scrollbar
    9 PASS Scrollbar state: enabled,expanded,visible_track,visible_thumb
     9PASS Scrollbar is enabled and expanded
    1010Unhovering vertical scrollbar should hide it
    1111PASS Thumb and track hidden
  • trunk/LayoutTests/fast/scrolling/mac/scrollbars/overflow-overlay-scrollbar-hovered.html

    r269360 r283395  
    4747            await UIHelper.waitForCondition(() => {
    4848                let state = internals.verticalScrollbarState(scroller);
     49                let enabled = state.indexOf('enabled') != -1;
    4950                let expanded = state.indexOf('expanded') != -1;
    50                 if (expanded)
    51                     testPassed('Scrollbar state: ' + state);
     51                if (enabled && expanded)
     52                    testPassed('Scrollbar is enabled and expanded');
    5253                return expanded;
    5354            });
Note: See TracChangeset for help on using the changeset viewer.