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

Changeset 265780 in webkit


Ignore:
Timestamp:
Aug 17, 2020, 4:12:59 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[ macOS iOS ] svg/animations/smil-leak-element-instances-noBaseValRef.svg is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=215353

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2020-08-17
Reviewed by Jon Lee.

GCController.collect() is flaky. Calling this function from JS does not
guarantee the memory of all the deallocated objects is garbage-collected.
Multiple calls to GCController.collect() may be invoked to overcome this
problem. Putting idle time before requesting the numberOfLiveNodes()
might be needed as well.

The test adds 100 <use> elements. Each of them references a <rect> element
and adds an <animate> element to animate the 'x' property. This is a big
number of objects to be allocated, deallocated and garbage collected. To
overcome the flakiness of GCController.collect(), three <use> elements
can be added instead. This number of objects should be enough to test the
SVG animated properties do not leak. And at the same time the test won't
exercise the flakiness of GCController.collect().

  • platform/ios-wk2/TestExpectations:
  • platform/mac-wk2/TestExpectations:
  • svg/animations/smil-leak-element-instances-noBaseValRef.svg:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r265777 r265780  
     12020-08-17  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        [ macOS iOS ] svg/animations/smil-leak-element-instances-noBaseValRef.svg is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=215353
     5
     6        Reviewed by Jon Lee.
     7
     8        GCController.collect() is flaky. Calling this function from JS does not
     9        guarantee the memory of all the deallocated objects is garbage-collected.
     10        Multiple calls to GCController.collect() may be invoked to overcome this
     11        problem. Putting idle time before requesting the numberOfLiveNodes()
     12        might be needed as well.
     13
     14        The test adds 100 <use> elements. Each of them references a <rect> element
     15        and adds an <animate> element to animate the 'x' property. This is a big
     16        number of objects to be allocated, deallocated and garbage collected. To
     17        overcome the flakiness of GCController.collect(), three <use> elements
     18        can be added instead. This number of objects should be enough to test the
     19        SVG animated properties do not leak. And at the same time the test won't
     20        exercise the flakiness of GCController.collect().
     21
     22        * platform/ios-wk2/TestExpectations:
     23        * platform/mac-wk2/TestExpectations:
     24        * svg/animations/smil-leak-element-instances-noBaseValRef.svg:
     25
    1262020-08-17  Hector Lopez  <hector_i_lopez@apple.com>
    227
  • trunk/LayoutTests/platform/ios-wk2/TestExpectations

    r265772 r265780  
    18461846webkit.org/b/215351 http/wpt/service-workers/module-meta-url-fragment.https.html [ Pass Failure ]
    18471847
    1848 webkit.org/b/245353 [ Debug ] svg/animations/smil-leak-element-instances-noBaseValRef.svg [ Pass Failure ]
    1849 
    18501848webkit.org/b/208832 imported/w3c/web-platform-tests/webmessaging/Channel_postMessage_Blob.htm [ Pass Failure ]
    18511849
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r265770 r265780  
    10961096webkit.org/b/215304 fast/forms/auto-fill-button/caps-lock-indicator-should-be-visible-after-hiding-auto-fill-strong-password-button.html [ Pass Failure ]
    10971097
    1098 webkit.org/b/245353 [ Release ] svg/animations/smil-leak-element-instances-noBaseValRef.svg [ Pass Failure ]
    1099 
    11001098webkit.org/b/215465 [ Debug ] http/tests/security/no-indexeddb-from-sandbox.html [ Crash ]
    11011099
  • trunk/LayoutTests/svg/animations/smil-leak-element-instances-noBaseValRef.svg

    r155890 r265780  
    3838    originalLiveElements = window.internals.numberOfLiveNodes();
    3939
    40     for (var i = 0; i < 100; i++)
     40    for (var i = 0; i < 3; i++)
    4141        g.appendChild(createAnimatedRectInstance());
    4242
Note: See TracChangeset for help on using the changeset viewer.