From de06d2b18bd19668277462e5a4f300881d017d23 Mon Sep 17 00:00:00 2001 From: Halil Durak Date: Thu, 22 Jan 2026 16:24:01 +0300 Subject: [PATCH] update test --- src/browser/tests/element/html/image.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/browser/tests/element/html/image.html b/src/browser/tests/element/html/image.html index 2da46712..9a2053e3 100644 --- a/src/browser/tests/element/html/image.html +++ b/src/browser/tests/element/html/image.html @@ -103,6 +103,7 @@ const img = document.createElement("img"); let count = 0; img.addEventListener("load", ({ bubbles, cancelBubble, cancelable, composed, isTrusted, target }) => { + testing.expectEqual(true, count < 3); count++; testing.expectEqual(false, bubbles); @@ -118,7 +119,7 @@ testing.expectEqual("https://cdn.lightpanda.io/website/assets/images/docs/hn.png", img.src); } - // Should work since we synchronously exeute the listener. - testing.expectEqual(3, count); + // Make sure count is incremented asynchronously. + testing.expectEqual(0, count); }