mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7
This commit is contained in:
parent
7e4d0534c3
commit
d2429e5077
4053 changed files with 160516 additions and 486 deletions
|
@ -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, ' +
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue