Update web-platform-tests to revision 4af6af604800559d2c58cf3561621ae43e28aaa8

This commit is contained in:
WPT Sync Bot 2020-06-16 08:20:51 +00:00
parent 19c1f72eb2
commit 1a24e35f18
150 changed files with 3701 additions and 419 deletions

View file

@ -72,14 +72,15 @@ promise_test(async t => {
assert_equals(animations[0].transitionProperty, 'left');
assert_equals(animations[1].transitionProperty, 'top');
await waitForAnimationFrames(2);
// Add one more transition. As the previous call to getAnimations triggered a
// style change, the new animation is in a higher transition generation even
// though no frame was rendered for the previous transitions.
div.style.opacity = '1'
div.style.transition = 'all 100s';
div.style.opacity = '0'
animations = document.getAnimations();
assert_equals(animations.length, 3,
'getAnimations returns two running CSS Transitions');
'getAnimations returns three running CSS Transitions');
assert_equals(animations[0].transitionProperty, 'left', '1');
assert_equals(animations[1].transitionProperty, 'top', '2');
assert_equals(animations[2].transitionProperty, 'opacity', '3');