mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 50d6ee076e94273080d9f3b69be0bf4eeae156d3
This commit is contained in:
parent
3b9055510a
commit
280c87822d
331 changed files with 4209 additions and 866 deletions
|
@ -80,6 +80,25 @@ promise_test(async t => {
|
|||
}, 'A pending ready promise should be resolved and not replaced when the'
|
||||
+ ' animation enters the running state');
|
||||
|
||||
promise_test(async t => {
|
||||
const animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
|
||||
animation.currentTime = 50 * MS_PER_SEC;
|
||||
await animation.ready;
|
||||
|
||||
animation.pause();
|
||||
await animation.ready;
|
||||
|
||||
const holdTime = animation.currentTime;
|
||||
|
||||
animation.play();
|
||||
await animation.ready;
|
||||
|
||||
assert_less_than_equal(
|
||||
animation.startTime,
|
||||
animation.timeline.currentTime - holdTime + TIME_PRECISION
|
||||
);
|
||||
}, 'Resuming an animation from paused calculates start time from hold time');
|
||||
|
||||
promise_test(async t => {
|
||||
const animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
|
||||
await animation.ready;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue