Update web-platform-tests to revision 34f3acabcceff6504c38bd826aca9c0728f26234

This commit is contained in:
WPT Sync Bot 2020-03-04 08:21:07 +00:00
parent 61cf25c98a
commit e469d2e43d
56 changed files with 1103 additions and 120 deletions

View file

@ -179,7 +179,6 @@ promise_test(async t => {
transition.effect = new KeyframeEffect(div,
{ marginLeft: [ '0px' , '100px'] },
100 * MS_PER_SEC);
assert_equals(transition.transitionProperty, 'left');
assert_true(transition.pending);
// As a sanity check, check that the transition actually exits the
@ -189,4 +188,52 @@ promise_test(async t => {
}, 'After setting a new keyframe effect on a play-pending transition,'
+ ' the transition remains pending');
test(t => {
const div = addDiv(t);
div.style.left = '0px';
getComputedStyle(div).transitionProperty;
div.style.transition = 'left 100s';
div.style.left = '100px';
const transition = div.getAnimations()[0];
transition.effect = null;
assert_equals(transition.transitionProperty, 'left');
}, 'A transition with no effect still returns the original transitionProperty');
test(t => {
const div = addDiv(t);
div.style.left = '0px';
getComputedStyle(div).transitionProperty;
div.style.transition = 'left 100s';
div.style.left = '100px';
const transition = div.getAnimations()[0];
// Seek to the middle and get the portion.
transition.currentTime = 50 * MS_PER_SEC;
const portion = transition.effect.getComputedTiming().progress;
// Replace the effect but keep the original timing
transition.effect = new KeyframeEffect(
div,
{ top: ['200px', '300px', '100px'] },
transition.effect.getTiming()
);
// Reverse the transition
div.style.left = '0px';
const reversedTransition = div.getAnimations()[0];
const expectedDuration = 100 * MS_PER_SEC * portion;
assert_approx_equals(
reversedTransition.effect.getComputedTiming().activeDuration,
expectedDuration,
1
);
}, 'A transition with a replaced effect still exhibits the regular transition'
+ ' reversing behavior');
</script>