mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c
This commit is contained in:
parent
f9608022ca
commit
299ad0f9d0
573 changed files with 38776 additions and 14942 deletions
|
@ -51,6 +51,19 @@ test(function(t) {
|
|||
'set currentTime same as duration when endDelay is negative value');
|
||||
}, 'when endDelay is changed');
|
||||
|
||||
test(function(t) {
|
||||
var div = createDiv(t);
|
||||
var anim = div.animate({ opacity: [ 0, 1 ] }, 2000);
|
||||
anim.finish();
|
||||
assert_equals(div.getAnimations().length, 0, 'animation finished');
|
||||
anim.effect.timing.iterations = 10;
|
||||
assert_equals(div.getAnimations()[0], anim, 'set iterations 10');
|
||||
anim.effect.timing.iterations = 0;
|
||||
assert_equals(div.getAnimations().length, 0, 'set iterations 0');
|
||||
anim.effect.timing.iterations = Infinity;
|
||||
assert_equals(div.getAnimations().length, 1, 'set iterations Infinity');
|
||||
}, 'when iterations is changed');
|
||||
|
||||
test(function(t) {
|
||||
var div = createDiv(t);
|
||||
var anim = div.animate({ opacity: [ 0, 1 ] },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue