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
--- 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;