mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'1393983442315fc6a96bacda5202036ca10327e3'
This commit is contained in:
parent
37f26f5250
commit
e8bd8b22fa
300 changed files with 3487 additions and 1857 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue