Update web-platform-tests to revision b'1393983442315fc6a96bacda5202036ca10327e3'

This commit is contained in:
WPT Sync Bot 2023-03-03 03:14:26 +00:00
parent 37f26f5250
commit e8bd8b22fa
300 changed files with 3487 additions and 1857 deletions

View file

@ -7,12 +7,14 @@
*/
function waitForAtLeastOneFrame() {
return new Promise(resolve => {
// Different web engines work slightly different on this area but waiting
// for two requestAnimationFrames() to happen, one after another, should be
// Different web engines work slightly different on this area but 1) waiting
// for two requestAnimationFrames() to happen one after another and 2)
// adding a step_timeout(0) to guarantee events have finished should be
// sufficient to ensure at least one frame has been generated anywhere.
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1785615
window.requestAnimationFrame(() => {
window.requestAnimationFrame(() => {
resolve();
setTimeout(resolve, 0);
});
});
});