Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7

This commit is contained in:
WPT Sync Bot 2020-01-29 11:32:50 +00:00
parent 7e4d0534c3
commit d2429e5077
4053 changed files with 160516 additions and 486 deletions

View file

@ -48,6 +48,24 @@ test(t => {
'getAnimations returns no running CSS Animations');
}, 'getAnimations for CSS Animations');
test(t => {
const div = addDiv(t);
const animation1 = 'animLeft 100s'
const animation2 = 'animBottom 100s'
div.style.animation = animation1;
const animations1 = document.getAnimations();
assert_equals(animations1.length, 1,
'getAnimations returns all running CSS Animations');
div.style.animation = animation2 + ', ' + animation1;
const animations = document.getAnimations();
assert_equals(animations.length, 2,
'getAnimations returns all running CSS Animations');
assert_equals(animations[0].animationName, 'animBottom',
'Order of first animation returned');
assert_equals(animations[1].animationName, 'animLeft',
'Order of second animation returned');
}, 'Order of CSS Animations - within an element unaffected by start time');
test(t => {
const div = addDiv(t);
div.style.animation = 'animLeft 100s, animTop 100s, animRight 100s, ' +

View file

@ -303,8 +303,8 @@ test(t => {
'#target::before': 'animation: anim1 10s;' });
const target = addDiv(t, { 'id': 'target' });
target.style.animation = 'anim1 100s';
const animations = target.getAnimations({ subtree: false });
assert_equals(animations.length, 1,
'Should find only the element');
assert_equals(animations[0].effect.target, target,
@ -317,8 +317,8 @@ test(t => {
'#target::before': 'animation: anim1 10s;' });
const target = addDiv(t, { 'id': 'target' });
target.style.animation = 'anim1 100s';
const animations = target.getAnimations({ subtree: true });
assert_equals(animations.length, 3,
'getAnimations({ subtree: true }) ' +
'should return animations on pseudo-elements');