Bug 1323330 - Part 2: Skip test cases involving missing keyframs. r?boris draft
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Wed, 14 Dec 2016 13:54:10 +0900
changeset 449458 8d12ed19d637aa61eb6c58a260bd75154147b84a
parent 449457 e34b8e0f0c599426eec49a9fe5974d2f28dd9e5b
child 539490 a19165efb4f884dfecf93f877051b0facc02f59d
push id38566
push userhiikezoe@mozilla-japan.org
push dateWed, 14 Dec 2016 06:34:47 +0000
reviewersboris
bugs1323330
milestone53.0a1
Bug 1323330 - Part 2: Skip test cases involving missing keyframs. r?boris MozReview-Commit-ID: 5IJWDW8KS7q
dom/animation/test/chrome/test_restyles.html
--- 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;