Update web-platform-tests to revision 50d6ee076e94273080d9f3b69be0bf4eeae156d3

This commit is contained in:
WPT Sync Bot 2018-08-22 21:45:47 -04:00
parent 3b9055510a
commit 280c87822d
331 changed files with 4209 additions and 866 deletions

View file

@ -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;