https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 48d5c9b147ef862c719e5ffc75c358ab7b95ea1a authored by Jungkee Song on 23 March 2018, 14:51:17 UTC
Add a cleanup callback
Tip revision: 48d5c9b
reftest-wait.js
function takeScreenshot() {
    document.documentElement.classList.remove("reftest-wait");
}

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