Changeset 251294 in webkit


Ignore:
Timestamp:
Oct 18, 2019 12:44:22 PM (5 years ago)
Author:
rniwa@webkit.org
Message:

Flaky Test: fast/events/resize-subframe-in-rendering-update.html
https://bugs.webkit.org/show_bug.cgi?id=203140

Reviewed by Simon Fraser.

The flakiness was caused by the race condition between rAF and setTimeout. In many cases,
setTimeout was getting scheduled after the next rAF and prevented some assertions to run in time.

Fixed the flakiness by moving setTimeout to outside the setTimeout in which tests run so that
those assertions would always run.

Rebaselined the test since these assertions in setTimeout are now always included in the results.

  • fast/events/resize-subframe-in-rendering-update-expected.txt:
  • fast/events/resize-subframe-in-rendering-update.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r251290 r251294  
     12019-10-18  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Flaky Test: fast/events/resize-subframe-in-rendering-update.html
     4        https://bugs.webkit.org/show_bug.cgi?id=203140
     5
     6        Reviewed by Simon Fraser.
     7
     8        The flakiness was caused by the race condition between rAF and setTimeout. In many cases,
     9        setTimeout was getting scheduled after the next rAF and prevented some assertions to run in time.
     10
     11        Fixed the flakiness by moving setTimeout to outside the setTimeout in which tests run so that
     12        those assertions would always run.
     13
     14        Rebaselined the test since these assertions in setTimeout are now always included in the results.
     15
     16        * fast/events/resize-subframe-in-rendering-update-expected.txt:
     17        * fast/events/resize-subframe-in-rendering-update.html:
     18
    1192019-10-18  Said Abou-Hallawa  <sabouhallawa@apple.com>
    220
  • trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update-expected.txt

    r251269 r251294  
    88iframeAA.style.width = "200px"; updateLayout(iframeAA)
    99PASS logs.length is 0
     10After 0s setTimeout
     11PASS logs.length is 0
    1012After requestAnimationFrame
    1113PASS logs.length is 3
  • trunk/LayoutTests/fast/events/resize-subframe-in-rendering-update.html

    r251269 r251294  
    3838        evalAndLog('iframeAA.style.width = "200px"; updateLayout(iframeAA)');
    3939        shouldBe('logs.length', '0');
    40         setTimeout(() => {
    41             debug('After 0s setTimeout');
    42             shouldBe('logs.length', '0');
    43         }, 0);
    4440        requestAnimationFrame(() => {
    4541            debug('After requestAnimationFrame');
     
    5147        });
    5248    }, 0);
     49    setTimeout(() => {
     50        debug('After 0s setTimeout');
     51        shouldBe('logs.length', '0');
     52    }, 0);
    5353});
    5454
Note: See TracChangeset for help on using the changeset viewer.