Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7

This commit is contained in:
WPT Sync Bot 2020-01-29 11:32:50 +00:00
parent 7e4d0534c3
commit d2429e5077
4053 changed files with 160516 additions and 486 deletions

View file

@ -1,7 +1,18 @@
/**
* Remove the `reftest-wait` class on the document element.
* The reftest runner will wait with taking a screenshot while
* this class is present.
*
* See https://web-platform-tests.org/writing-tests/reftests.html#controlling-when-comparison-occurs
*/
function takeScreenshot() {
document.documentElement.classList.remove("reftest-wait");
}
/**
* Call `takeScreenshot()` after a delay of at least |timeout| milliseconds.
* @param {number} timeout - milliseconds
*/
function takeScreenshotDelayed(timeout) {
setTimeout(function() {
takeScreenshot();