mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update web-platform-tests to revision e426a6933a05bf144eba06a1d4c47ba876a4e2d1
This commit is contained in:
parent
415b26e4f1
commit
5e5eccabf8
495 changed files with 14920 additions and 784 deletions
|
@ -41,6 +41,18 @@ test(t => {
|
|||
assert_array_equals(divChild.getAnimations(), [animationChild], 'divChild');
|
||||
}, 'Returns only the animations specific to each parent/child element');
|
||||
|
||||
test(t => {
|
||||
const foreignElement
|
||||
= document.createElementNS('http://example.org/test', 'test');
|
||||
document.body.appendChild(foreignElement);
|
||||
t.add_cleanup(() => {
|
||||
foreignElement.remove();
|
||||
});
|
||||
|
||||
const animation = foreignElement.animate(null, 100 * MS_PER_SEC);
|
||||
assert_array_equals(foreignElement.getAnimations(), [animation]);
|
||||
}, 'Returns animations for a foreign element');
|
||||
|
||||
test(t => {
|
||||
const div = createDiv(t);
|
||||
const animation = div.animate(null, 100 * MS_PER_SEC);
|
||||
|
@ -197,6 +209,28 @@ test(t => {
|
|||
}, 'Returns animations based on dynamic changes to individual'
|
||||
+ ' animations\' current time');
|
||||
|
||||
promise_test(async t => {
|
||||
const div = createDiv(t);
|
||||
|
||||
const animA = div.animate({ opacity: 1 }, { duration: 1, fill: 'forwards' });
|
||||
const animB = div.animate({ opacity: 1 }, { duration: 1, fill: 'forwards' });
|
||||
await animA.finished;
|
||||
|
||||
assert_array_equals(div.getAnimations(), [animB]);
|
||||
}, 'Does not return an animation that has been removed');
|
||||
|
||||
promise_test(async t => {
|
||||
const div = createDiv(t);
|
||||
|
||||
const animA = div.animate({ opacity: 1 }, { duration: 1, fill: 'forwards' });
|
||||
const animB = div.animate({ opacity: 1 }, { duration: 1, fill: 'forwards' });
|
||||
await animA.finished;
|
||||
|
||||
animA.persist();
|
||||
|
||||
assert_array_equals(div.getAnimations(), [animA, animB]);
|
||||
}, 'Returns an animation that has been persisted');
|
||||
|
||||
promise_test(async t => {
|
||||
const div = createDiv(t);
|
||||
const watcher = EventWatcher(t, div, 'transitionrun');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue