Update web-platform-tests to revision ea14651f262003177d0ba5819bd2806a1327b12a

This commit is contained in:
WPT Sync Bot 2018-04-30 21:09:29 -04:00
parent 847115ba04
commit 816185f094
272 changed files with 5766 additions and 2855 deletions

View file

@ -39,5 +39,17 @@ for (const subtest of gInvalidKeyframesTests) {
});
}, `KeyframeEffect constructor throws with ${subtest.desc}`);
}
test(t => {
const frames1 = [ { left: '100px' }, { left: '200px' } ];
const frames2 = [ { left: '200px' }, { left: '300px' } ];
const animation = target.animate(frames1, 1000);
animation.currentTime = 500;
assert_equals(getComputedStyle(target).left, "150px");
animation.effect.setKeyframes(frames2);
assert_equals(getComputedStyle(target).left, "250px");
}, 'Changes made via setKeyframes should be immediately visible in style');
</script>
</body>