Bug 1323330 - Part 2: Skip test cases involving missing keyframs. r?boris
MozReview-Commit-ID: 5IJWDW8KS7q
--- a/dom/animation/test/chrome/test_restyles.html
+++ b/dom/animation/test/chrome/test_restyles.html
@@ -806,17 +806,18 @@ waitForAllPaints(function() {
'removed');
yield ensureElementRemoval(div);
}
);
// Tests that additive animations don't throttle at all.
add_task(function* no_throttling_animations_out_of_view_element() {
- if (!SpecialPowers.getBoolPref('dom.animations.offscreen-throttling')) {
+ if (!SpecialPowers.getBoolPref('dom.animations.offscreen-throttling') ||
+ !SpecialPowers.getBoolPref('dom.animations-api.core.enabled')) {
return;
}
var div = addDiv(null, { style: 'transform: translateY(-400px);' });
var animation =
div.animate([{ visibility: 'visible' }], 100 * MS_PER_SEC);
yield animation.ready;
@@ -826,17 +827,18 @@ waitForAllPaints(function() {
is(markers.length, 5,
'Discrete animation has has no keyframe whose offset is 0 or 1 in an ' +
'out-of-view element should not be throttled');
yield ensureElementRemoval(div);
});
// Counter part of the above test.
add_task(function* no_restyling_discrete_animations_out_of_view_element() {
- if (!SpecialPowers.getBoolPref('dom.animations.offscreen-throttling')) {
+ if (!SpecialPowers.getBoolPref('dom.animations.offscreen-throttling') ||
+ !SpecialPowers.getBoolPref('dom.animations-api.core.enabled')) {
return;
}
var div = addDiv(null, { style: 'transform: translateY(-400px);' });
var animation =
div.animate({ visibility: ['visible', 'hidden'] }, 100 * MS_PER_SEC);
yield animation.ready;