Changeset 251944 in webkit


Ignore:
Timestamp:
Nov 1, 2019 2:39:03 PM (4 years ago)
Author:
rniwa@webkit.org
Message:

macOS WK1: requestidlecallback/requestidlecallback-document-gc.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=203758

Reviewed by Wenson Hsieh.

Fix the test by delaying the check until the next run loop via setTimeout.
This is needed to make GC work reliably in WK1.

  • requestidlecallback/requestidlecallback-document-gc.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r251933 r251944  
     12019-11-01  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        macOS WK1: requestidlecallback/requestidlecallback-document-gc.html is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=203758
     5
     6        Reviewed by Wenson Hsieh.
     7
     8        Fix the test by delaying the check until the next run loop via setTimeout.
     9        This is needed to make GC work reliably in WK1.
     10
     11        * requestidlecallback/requestidlecallback-document-gc.html:
     12
    1132019-11-01  Nikita Vasilyev  <nvasilyev@apple.com>
    214
  • trunk/LayoutTests/requestidlecallback/requestidlecallback-document-gc.html

    r251924 r251944  
    2626    }
    2727    document.querySelectorAll('iframe').forEach((frame) => frame.remove());
    28     GCController.collect();
    29     shouldBeTrue('initialCount + frameCount / 2 > internals.numberOfLiveDocuments()');
    30     finishJSTest();
     28    setTimeout(() => {
     29        GCController.collect();
     30        shouldBeTrue('initialCount + frameCount / 2 > internals.numberOfLiveDocuments()');
     31        finishJSTest();
     32    }, 0);
    3133}
    3234
Note: See TracChangeset for help on using the changeset viewer.