wpt: Add a delay to load to valid image to overcome false positive PASS (#43357)

This adds a delay of 2 seconds for loading a valid image. This is added
to potentially overcome the race condition happening while reporting
LCP, to save from false positive result.

Testing: WPT tests is `TIMED OUT` as expected.

Signed-off-by: Shubham Gupta <shubham.gupta@chromium.org>
This commit is contained in:
Shubham Gupta
2026-03-18 00:03:33 +08:00
committed by GitHub
parent fc2152e4c6
commit ba7ad0d8aa
3 changed files with 6 additions and 2 deletions

View File

@@ -806161,7 +806161,7 @@
]
],
"broken-image-icon.html": [
"8ca55b41e6b125453d7e2cf409a0cd904c64a672",
"e27e32816e83af5ae049e992a655de026b7db52a",
[
null,
{}

View File

@@ -0,0 +1,4 @@
[broken-image-icon.html]
expected: ERROR
[The broken image icon should not emit an LCP entry.]
expected: TIMEOUT

View File

@@ -9,7 +9,7 @@
<body>
<img src="../non-existent-image.jpg">
<img src="/css/css-images/support/colors-16x8.png">
<img src="/css/css-images/support/colors-16x8.png?pipe=trickle(d2)">
<script>
promise_test(async () => {