[Webkit-unassigned] [Bug 157916] http/tests/misc/slow-loading-animated-image.html is flaky on iOS simulator
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 19 14:59:38 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=157916
--- Comment #1 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
The animated GIF used by this tests has 48 frames. Frames (1-47) have frame-length=20ms. Frame 48 has frame-length=10s. The test relies on capturing the 48th frame which should be shown after 47*20=940ms. On the mac ports, setTimeout for 1 second was enough to ensure the 48th frame is displayed at the time the test ends. For iOS, 1 second was not enough, so I had to increase the setTimeout from 1 second to 1500ms. This seems to be not enough all the times. I checked the flakiness dashboard and I found out the number of frames, which were animated after 1500ms, was: 16, 17, 20, 22, 23, 47. So increasing the setTimeout seems not an option. We have to wait at least 4500ms to ensure the first 47 frames were already rendered and the 48th frame is displayed.
Other possible ways to fix this are the following:
1. Skip the test for iOS.
2. Add an internal API which returns the number of frames of an animated image and compare it with the actual number of frames the image has which is 48 for this test.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160519/aaf95175/attachment.html>
More information about the webkit-unassigned
mailing list