| Index: third_party/WebKit/LayoutTests/images/pixel-crack-image-background-webkit-transform-scale.html
|
| diff --git a/third_party/WebKit/LayoutTests/images/pixel-crack-image-background-webkit-transform-scale.html b/third_party/WebKit/LayoutTests/images/pixel-crack-image-background-webkit-transform-scale.html
|
| index ba3610bb7c28cab570c7e75ee08093c1b1f40356..eba164e24271550f8301ff505468d45ee0409a37 100644
|
| --- a/third_party/WebKit/LayoutTests/images/pixel-crack-image-background-webkit-transform-scale.html
|
| +++ b/third_party/WebKit/LayoutTests/images/pixel-crack-image-background-webkit-transform-scale.html
|
| @@ -23,6 +23,23 @@
|
| document.body.appendChild(div);
|
| }
|
| }
|
| + if (window.testRunner) {
|
| + testRunner.waitUntilDone();
|
| + window.addEventListener('load', () => {
|
| + // This is a workaroud for an issue that the load event may be
|
| + // dispatched before loading the background image. See
|
| + // https://crbug.com/675870.
|
| + const id = setInterval(() => {
|
| + // Force layout.
|
| + document.body.offsetTop;
|
| + if (internals.isLoading('./resources/pixel-crack-image-background-webkit-transform-scale.png')) {
|
| + return;
|
| + }
|
| + clearInterval(id);
|
| + testRunner.notifyDone();
|
| + }, 50);
|
| + });
|
| + }
|
| </script>
|
| </head>
|
| <body onload="runTest()">
|
|
|