author | Kevin Ellis <kevers@chromium.org> |
Mon, 22 Jun 2020 10:40:20 +0000 | |
changeset 536800 | 78353d7ea0c7cb8cce1d55003c824e8541b1caf8 |
parent 536799 | b2d83712270e447f98668047f731f7a1a5b168e3 |
child 536801 | 19aa1a523a7e08bf57166235aae9d48fa8400fcc |
push id | 37533 |
push user | dluca@mozilla.com |
push date | Tue, 23 Jun 2020 21:38:40 +0000 |
treeherder | mozilla-central@d48aa0f0aa0b [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1645881, 24154, 1095105, 2246924, 778503 |
milestone | 79.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/tests/css/css-transitions/Document-getAnimations.tentative.html | file | annotate | diff | comparison | revisions |
--- a/testing/web-platform/tests/css/css-transitions/Document-getAnimations.tentative.html +++ b/testing/web-platform/tests/css/css-transitions/Document-getAnimations.tentative.html @@ -67,24 +67,25 @@ promise_test(async t => { div.style.left = '100px'; var animations = document.getAnimations(); assert_equals(animations.length, 2, 'getAnimations returns two running CSS Transitions'); assert_equals(animations[0].transitionProperty, 'left'); assert_equals(animations[1].transitionProperty, 'top'); - await waitForAnimationFrames(2); - + // Add one more transition. As the previous call to getAnimations triggered a + // style change, the new animation is in a higher transition generation even + // though no frame was rendered for the previous transitions. div.style.opacity = '1' div.style.transition = 'all 100s'; div.style.opacity = '0' animations = document.getAnimations(); assert_equals(animations.length, 3, - 'getAnimations returns two running CSS Transitions'); + 'getAnimations returns three running CSS Transitions'); assert_equals(animations[0].transitionProperty, 'left', '1'); assert_equals(animations[1].transitionProperty, 'top', '2'); assert_equals(animations[2].transitionProperty, 'opacity', '3'); }, 'getAnimations for CSS Transitions sort by transition generation'); function pseudoTest(description, testMarkerPseudos) { test(t => { // Create two divs with the following arrangement: