WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 157916
http/tests/misc/slow-loading-animated-image.html is flaky on iOS simulator and Windows
https://bugs.webkit.org/show_bug.cgi?id=157916
Summary
http/tests/misc/slow-loading-animated-image.html is flaky on iOS simulator an...
Alexey Proskuryakov
Reported
2016-05-19 13:11:47 PDT
http/tests/misc/slow-loading-animated-image.html fails very often on iOS Simulator, especially in debug:
http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fmisc%2Fslow-loading-animated-image.html
Attachments
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2016-05-19 14:59:38 PDT
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.
Alexey Proskuryakov
Comment 2
2016-05-19 17:43:03 PDT
> 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.
This definitely sounds better than skipping.
Alexey Proskuryakov
Comment 3
2016-05-31 09:19:08 PDT
Said, do you expect to work on this soon? The test fails on bots very frequently.
Ryan Haddad
Comment 4
2016-06-06 15:32:52 PDT
Marked test as flaky in <
http://trac.webkit.org/projects/webkit/changeset/201731
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug