Bug 1419079 - Drop checking the pref for animations-api core in file_restyles.html. r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Wed, 17 Jan 2018 08:55:00 +0900
changeset 721311 e3606d63928838935bc75deb42d1182676774ffe
parent 721208 b2cb61e83ac50115a28f04aaa8a32d4db90aad23
child 721312 86d96131839d70b87fad95a74de822dbbf47e186
push id95792
push userhikezoe@mozilla.com
push dateWed, 17 Jan 2018 01:53:19 +0000
reviewersbirtles
bugs1419079
milestone59.0a1
Bug 1419079 - Drop checking the pref for animations-api core in file_restyles.html. r?birtles It's already specified to true in test_restyles.html. MozReview-Commit-ID: JMItunKYwIs
dom/animation/test/mozilla/file_restyles.html
--- a/dom/animation/test/mozilla/file_restyles.html
+++ b/dom/animation/test/mozilla/file_restyles.html
@@ -990,18 +990,17 @@ waitForAllPaints(() => {
          'removed');
 
       await ensureElementRemoval(div);
     }
   );
 
   // Tests that additive animations don't throttle at all.
   add_task(async function no_throttling_animations_out_of_view_element() {
-    if (!offscreenThrottlingEnabled ||
-        !SpecialPowers.getBoolPref('dom.animations-api.core.enabled')) {
+    if (!offscreenThrottlingEnabled) {
       return;
     }
 
     var div = addDiv(null, { style: 'transform: translateY(-400px);' });
     var animation =
       div.animate([{ visibility: 'visible' }], 100 * MS_PER_SEC);
 
     await animation.ready;
@@ -1012,18 +1011,17 @@ waitForAllPaints(() => {
     is(markers.length, expectedRestyleCount,
        'Discrete animation has has no keyframe whose offset is 0 or 1 in an ' +
        'out-of-view element should not be throttled');
     await ensureElementRemoval(div);
   });
 
   // Counter part of the above test.
   add_task(async function no_restyling_discrete_animations_out_of_view_element() {
-    if (!offscreenThrottlingEnabled ||
-        !SpecialPowers.getBoolPref('dom.animations-api.core.enabled')) {
+    if (!offscreenThrottlingEnabled) {
       return;
     }
 
     var div = addDiv(null, { style: 'transform: translateY(-400px);' });
     var animation =
       div.animate({ visibility: ['visible', 'hidden'] }, 100 * MS_PER_SEC);
 
     await animation.ready;