Bug 1446993 - Observe restyling count in `fixed 20` frames instead of tweaked count. r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Wed, 28 Mar 2018 08:24:38 +0900
changeset 773460 b46651d499e171b31f3648d6a141909f0bb0c5da
parent 772709 3189f213343f8a6f554fd30c6f8f98e791b0b02c
push id104240
push userhikezoe@mozilla.com
push dateTue, 27 Mar 2018 23:25:45 +0000
reviewersbirtles
bugs1446993, 1444177
milestone61.0a1
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
dom/animation/test/mozilla/file_restyles.html
--- 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() {