[Webkit-unassigned] [Bug 170177] LayoutTest fast/images/reset-image-animation.html is a flaky failure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 26 18:01:45 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=170177

--- Comment #6 from Fujii Hironori <Hironori.Fujii at sony.com> ---
I tried another approach of retrying drawFrame until expected frame without extending the timer duration.
However, I'm observing timeout failure for this approach.
Decoding frame doesn't proceed.
I have to extend the timer duration in this approach too.

diff --git a/LayoutTests/fast/images/reset-image-animation.html b/LayoutTests/fast/images/reset-image-animation.html
index 62cb9bf09894..8c6fdc75ac14 100644
--- a/LayoutTests/fast/images/reset-image-animation.html
+++ b/LayoutTests/fast/images/reset-image-animation.html
@@ -13,6 +13,8 @@
                 let canvas = document.getElementById("canvas");
                 let context = canvas.getContext("2d");
                 context.drawImage(image, 0, 0, canvas.width, canvas.height);
+                if (internals.imageFrameIndex(image) != expectedFrame)
+                    return drawFrame(expectedFrame).then(resolve);
                 shouldBe("internals.imageFrameIndex(image)", expectedFrame.toString());
                 setTimeout(() => {
                     resolve(expectedFrame + 1);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230427/ef485c04/attachment.htm>


More information about the webkit-unassigned mailing list