Bug 1323330 - Part 1: Run test_animation_properties.html with the Web Animation API pref. r=boris

Handling missing keyframe is behind the pref value regardless whether the
script runs on chrome privilege or not. So the pref has to be set explicitly.

MozReview-Commit-ID: 8f83wgGDF4a

--HG--
extra : rebase_source : ac6cfff90680a080194c3c7f92b3636f84cea3b9
This commit is contained in:
Hiroyuki Ikezoe 2016-12-14 13:52:14 +09:00
Родитель 4d5d205b7a
Коммит 8609a02cce
1 изменённых файлов: 15 добавлений и 8 удалений

Просмотреть файл

@ -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();
}
);
</script>
</body>