diff --git a/dom/animation/test/chrome/test_animation_properties.html b/dom/animation/test/chrome/test_animation_properties.html index 0108a1cbf838..b910300b6d01 100644 --- a/dom/animation/test/chrome/test_animation_properties.html +++ b/dom/animation/test/chrome/test_animation_properties.html @@ -804,14 +804,21 @@ var gTests = [ }, ]; -gTests.forEach(function(subtest) { - test(function(t) { - var div = addDiv(t); - var animation = div.animate(subtest.frames, 100 * MS_PER_SEC); - assert_properties_equal(animation.effect.getProperties(), - subtest.expected); - }, subtest.desc); -}); +SpecialPowers.pushPrefEnv( + { set: [["dom.animations-api.core.enabled", true]] }, + function() { + gTests.forEach(function(subtest) { + test(function(t) { + var div = addDiv(t); + var animation = div.animate(subtest.frames, 100 * MS_PER_SEC); + assert_properties_equal(animation.effect.getProperties(), + subtest.expected); + }, subtest.desc); + }); + + done(); + } +);