mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -41,6 +41,19 @@ test(t => {
|
|||
'getAnimations() returns running animations');
|
||||
}, 'Test the order of document.getAnimations with script generated animations')
|
||||
|
||||
test(t => {
|
||||
// This element exists but is not a descendent of any document, so isn't
|
||||
// picked up by getAnimations.
|
||||
const div = document.createElement('div');
|
||||
const anim = div.animate(gKeyFrames, 100 * MS_PER_SEC);
|
||||
assert_equals(document.getAnimations().length, 0);
|
||||
|
||||
// Now connect the div; it should appear in the list of animations.
|
||||
document.body.appendChild(div);
|
||||
t.add_cleanup(() => { div.remove(); });
|
||||
assert_equals(document.getAnimations().length, 1);
|
||||
}, 'Test document.getAnimations for a disconnected node');
|
||||
|
||||
test(t => {
|
||||
const effect = new KeyframeEffect(null, gKeyFrames, 100 * MS_PER_SEC);
|
||||
const anim = new Animation(effect, document.timeline);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue