mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7
This commit is contained in:
parent
7e4d0534c3
commit
d2429e5077
4053 changed files with 160516 additions and 486 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue