https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 97317790d486c4b239e1e4f9942243a1991dce79 authored by Frédéric Wang on 14 March 2018, 14:14:29 UTC
use requestAnimationFrame instead of setTimeout(..., 0)
Tip revision: 9731779
reftest-wait.js
function takeScreenshot() {
    document.documentElement.classList.remove("reftest-wait");
}

function takeScreenshotDelayed(timeout) {
    setTimeout(function() {
        takeScreenshot();
    }, timeout);
}
back to top