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

Changeset 268807 in webkit


Ignore:
Timestamp:
Oct 21, 2020, 11:07:34 AM (6 years ago)
Author:
graouts@webkit.org
Message:

[WK1] webanimations/accelerated-overlapping-transform-animations.html is a failure
https://bugs.webkit.org/show_bug.cgi?id=217997
<rdar://problem/70505533>

Reviewed by Dean Jackson.

On WK1 UIHelper.ensureStablePresentationUpdate() does not guarantee frames have elapsed so we
wait a couple of animation frames in that configuration to ensure an accelerated animation has
been applied.

  • platform/mac-wk1/TestExpectations:
  • webanimations/accelerated-overlapping-transform-animations.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r268805 r268807  
     12020-10-21  Antoine Quint  <graouts@webkit.org>
     2
     3        [WK1] webanimations/accelerated-overlapping-transform-animations.html is a failure
     4        https://bugs.webkit.org/show_bug.cgi?id=217997
     5        <rdar://problem/70505533>
     6
     7        Reviewed by Dean Jackson.
     8
     9        On WK1 UIHelper.ensureStablePresentationUpdate() does not guarantee frames have elapsed so we
     10        wait a couple of animation frames in that configuration to ensure an accelerated animation has
     11        been applied.
     12
     13        * platform/mac-wk1/TestExpectations:
     14        * webanimations/accelerated-overlapping-transform-animations.html:
     15
    1162020-10-21  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/LayoutTests/platform/mac-wk1/TestExpectations

    r268771 r268807  
    11991199
    12001200webkit.org/b/217934 inspector/debugger/breakpoint-resolve-when-script-added.html [ Skip ]
    1201 
    1202 webkit.org/b/217997 webanimations/accelerated-overlapping-transform-animations.html [ Pass Failure ]
  • trunk/LayoutTests/webanimations/accelerated-overlapping-transform-animations.html

    r268771 r268807  
    1515<script>
    1616
     17const waitForAnimationCommit = async (animation) => {
     18    await animation.ready;
     19    if (!UIHelper.isWebKit2()) {
     20        await UIHelper.renderingUpdate();
     21        await UIHelper.renderingUpdate();
     22    } else
     23        await UIHelper.ensureStablePresentationUpdate()
     24}
     25
    1726(async () => {
    1827    if (window.testRunner)
     
    2433    const duration = 60 * 1000;
    2534
    26     // Start a first stationary "transform" animation.
    27     const firstAnimation = target.animate({ transform: ["translateX(100px)", "translateX(100px)"] }, duration);
    28 
    29     // Wait until this first animation has been applied.
    30     await firstAnimation.ready;
    31     await UIHelper.ensureStablePresentationUpdate();
    32 
    33     // Now start a second stationary "transform" animation, which should replace the previous animation.
    34     const secondAnimation = target.animate({ transform: ["translateX(200px)", "translateX(200px)"] }, duration);
    35 
    36     // Wait until this second animation has been applied.
    37     await secondAnimation.ready;
    38     await UIHelper.ensureStablePresentationUpdate();
     35    // Start a first stationary "transform" animation and wait until it has been applied before starting
     36    // a second stationary "transform" animation which should replace the first one.
     37    await waitForAnimationCommit(target.animate({ transform: ["translateX(100px)", "translateX(100px)"] }, duration));
     38    await waitForAnimationCommit(target.animate({ transform: ["translateX(200px)", "translateX(200px)"] }, duration));
    3939
    4040    if (window.testRunner)
Note: See TracChangeset for help on using the changeset viewer.