diff options
Diffstat (limited to 'testing/web-platform/tests/common/reftest-wait.js')
-rw-r--r-- | testing/web-platform/tests/common/reftest-wait.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/common/reftest-wait.js b/testing/web-platform/tests/common/reftest-wait.js new file mode 100644 index 000000000..87816f834 --- /dev/null +++ b/testing/web-platform/tests/common/reftest-wait.js @@ -0,0 +1,9 @@ +function takeScreenshot() { + document.documentElement.classList.remove("reftest-wait"); +} + +function takeScreenshotDelayed(timeout) { + setTimeout(function() { + takeScreenshot(); + }, timeout); +} |