Changeset 245877 in webkit


Ignore:
Timestamp:
May 29, 2019 4:23:49 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION (r244182) [Mac WK2] Layout Test imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=197286

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2019-05-29
Reviewed by Simon Fraser.

LayoutTests/imported/w3c:

This is a time sensitive test. It expects to receive a resize event within
two frames after the page load. Scheduling the page update through the
RenderingUpdate made updating the page for the first time happens not
immediately after the page load but after an additional frame.

So we need to wait for this additional frame before checking whether the
'resize' event was fired.

  • web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html:

LayoutTests:

  • platform/mac-wk2/TestExpectations:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245873 r245877  
     12019-05-29  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        REGRESSION (r244182) [Mac WK2] Layout Test imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=197286
     5
     6        Reviewed by Simon Fraser.
     7
     8        * platform/mac-wk2/TestExpectations:
     9
    1102019-05-29  Youenn Fablet  <youenn@apple.com>
    211
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r245867 r245877  
     12019-05-29  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        REGRESSION (r244182) [Mac WK2] Layout Test imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=197286
     5
     6        Reviewed by Simon Fraser.
     7
     8        This is a time sensitive test. It expects to receive a resize event within
     9        two frames after the page load. Scheduling the page update through the
     10        RenderingUpdate made updating the page for the first time happens not
     11        immediately after the page load but after an additional frame.
     12
     13        So we need to wait for this additional frame before checking whether the
     14        'resize' event was fired.
     15
     16        * web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html:
     17
    1182019-05-29  Antoine Quint  <graouts@apple.com>
    219
  • trunk/LayoutTests/imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html

    r227054 r245877  
    2727
    2828                window.addEventListener('load', function() {
    29                   requestAnimationFrame(function() {
    30                     requestAnimationFrame(
    31                         t.step_func_done(function() {
     29                    var count = 0;
     30                    requestAnimationFrame(function step() {
     31                        // Wait for two RenderingUpdates before checking the value of numViewResizes.
     32                        if (count++ < 2) {
     33                            requestAnimationFrame(step);
     34                            return;
     35                        }
     36
     37                        requestAnimationFrame(t.step_func_done(function() {
    3238                            var isOverlay = calculateScrollbarThickness() == 0;
    3339                            assert_equals(numViewResizes, isOverlay ? 0 : 1);
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r245747 r245877  
    943943webkit.org/b/197207 http/wpt/resource-timing/rt-resources-per-frame.html [ Pass Failure ]
    944944
    945 webkit.org/b/197286 imported/w3c/web-platform-tests/visual-viewport/viewport-resize-event-on-load-overflowing-page.html [ Pass Failure ]
    946 
    947945webkit.org/b/197425 [ Mojave Debug ] scrollingcoordinator/scrolling-tree/scrolling-tree-includes-frame.html [ Pass Failure ]
    948946
Note: See TracChangeset for help on using the changeset viewer.