Update web-platform-tests to revision e2eb25aaa6dd3c512b172588f3400f9c25a410c3

This commit is contained in:
WPT Sync Bot 2019-02-11 20:38:59 -05:00
parent 3d4a416c6b
commit 8b66216ed2
484 changed files with 1945 additions and 1089 deletions

View file

@ -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();
}
}());
});
}