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

Changeset 244082 in webkit


Ignore:
Timestamp:
Apr 9, 2019, 10:50:11 AM (7 years ago)
Author:
graouts@webkit.org
Message:

[ Mac ] REGRESSION (r237587) Layout Test compositing/visible-rect/animated-from-none.html is flaky text diff failure
https://bugs.webkit.org/show_bug.cgi?id=194798
<rdar://problem/48181898>

Reviewed by Dean Jackson.

When using the Web Animations engine, the best way to run code as an animation start is to use the "ready" promise, whereas
DOM events are dispatched asynchronously and, in the case of this test, might have an animation progress that is greater
than 0 and yield an animated transform that isn't quite the identity matrix.

  • compositing/visible-rect/animated-from-none.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r244078 r244082  
     12019-04-09  Antoine Quint  <graouts@apple.com>
     2
     3        [ Mac ] REGRESSION (r237587) Layout Test compositing/visible-rect/animated-from-none.html is flaky text diff failure
     4        https://bugs.webkit.org/show_bug.cgi?id=194798
     5        <rdar://problem/48181898>
     6
     7        Reviewed by Dean Jackson.
     8
     9        When using the Web Animations engine, the best way to run code as an animation start is to use the "ready" promise, whereas
     10        DOM events are dispatched asynchronously and, in the case of this test, might have an animation progress that is greater
     11        than 0 and yield an animated transform that isn't quite the identity matrix.
     12
     13        * compositing/visible-rect/animated-from-none.html:
     14
    1152019-04-09  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/LayoutTests/compositing/visible-rect/animated-from-none.html

    r236541 r244082  
    3535        function doTest()
    3636        {
    37             let animated = document.getElementById('animated');
    38             animated.addEventListener('webkitAnimationStart', function() {
     37            const animated = document.getElementById('animated');
     38            animated.classList.add('animating');
     39            animated.getAnimations()[0].ready.then(() => {
    3940                if (window.internals)
    4041                    document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS)
     
    4243                if (window.testRunner)
    4344                    testRunner.notifyDone();
    44             }, false);
    45            
    46             animated.classList.add('animating');
     45            });
    4746        }
    4847        window.addEventListener('load', doTest, false);
Note: See TracChangeset for help on using the changeset viewer.