mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision b7a8b84debb42268ea95a45bdad8f727d1facdf7
This commit is contained in:
parent
ba929208e4
commit
953dbda9a6
215 changed files with 6409 additions and 1644 deletions
|
@ -48,7 +48,7 @@ async function waitForAnimationFrameWithCondition(condition) {
|
|||
do {
|
||||
await new Promise(window.requestAnimationFrame);
|
||||
} while (!condition())
|
||||
};
|
||||
}
|
||||
|
||||
async function waitForDocumentTimelineAdvance() {
|
||||
const timeAtStart = document.timeline.currentTime;
|
||||
|
@ -56,3 +56,10 @@ async function waitForDocumentTimelineAdvance() {
|
|||
await new Promise(window.requestAnimationFrame);
|
||||
} while (timeAtStart === document.timeline.currentTime)
|
||||
}
|
||||
|
||||
// Wait until animation's effect has a non-null localTime.
|
||||
async function waitForNotNullLocalTime(animation) {
|
||||
await waitForAnimationFrameWithCondition(_ => {
|
||||
return animation.effect.getComputedTiming().localTime !== null;
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue