mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision e2eb25aaa6dd3c512b172588f3400f9c25a410c3
This commit is contained in:
parent
3d4a416c6b
commit
8b66216ed2
484 changed files with 1945 additions and 1089 deletions
|
@ -191,13 +191,13 @@ function waitForAnimationFramesWithDelay(minDelay) {
|
|||
function waitForNextFrame() {
|
||||
const timeAtStart = document.timeline.currentTime;
|
||||
return new Promise(resolve => {
|
||||
window.requestAnimationFrame(() => {
|
||||
if (timeAtStart === document.timeline.currentTime) {
|
||||
window.requestAnimationFrame(resolve);
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
(function handleFrame() {
|
||||
if (timeAtStart === document.timeline.currentTime) {
|
||||
window.requestAnimationFrame(handleFrame);
|
||||
} else {
|
||||
resolve();
|
||||
}
|
||||
}());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue