Bug 1446993 - Observe restyling count in `fixed 20` frames instead of tweaked count. r?birtles
In
bug 1444177, I did accidentally replace the frame count with the tweaked
count. The tweaked count represents that animation restyling should happen
the tweaked count times during *not-yet-tweaked* frame count.
MozReview-Commit-ID: 1QmH5xaYexL
--- a/dom/animation/test/mozilla/file_restyles.html
+++ b/dom/animation/test/mozilla/file_restyles.html
@@ -625,17 +625,17 @@ waitForAllPaints(() => {
100 * MS_PER_SEC);
parentElement.appendChild(div);
await animation.ready;
ok(!SpecialPowers.wrap(animation).isRunningOnCompositor);
const expectedRestyleCount = tweakExpectedRestyleCount(animation, 20);
- var markers = await observeStyling(expectedRestyleCount);
+ var markers = await observeStyling(20);
is(markers.length, expectedRestyleCount,
'Finite transform animation in out-of-view element should never be ' +
'throttled');
await ensureElementRemoval(parentElement);
});
add_task(async function restyling_main_thread_animations_in_scrolled_out_element() {