зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4d5d205b7a
Коммит
8609a02cce
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче