mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision ea14651f262003177d0ba5819bd2806a1327b12a
This commit is contained in:
parent
847115ba04
commit
816185f094
272 changed files with 5766 additions and 2855 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue