Closed Bug 922608 Opened 11 years ago Closed 10 years ago

Provide a way for tests to determine that the gallery app has finished scanning

Categories

(Firefox OS Graveyard :: Gaia::Gallery, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [c=automation p= s= u=])

We need a reliable method to wait for the Gallery app to have loaded all thumbnails. At the moment we use a combination of the appload event, checking for the expected number of thumbnails, and checking for the progress bar to be hidden. Ideally we would be able to combine the appload event with another event or dom change that indicates that the scan has completed. This existing waits can be seen here: https://github.com/mozilla/b2gperf/blob/15cbbd8441e70fd6170a268649f3f00617ba7068/b2gperf/b2gperf.py#L617
Summary: Provide a way for tests to determine that gallery has finished scanning → Provide a way for tests to determine that the gallery app has finished scanning
Dave, would this be different from the app-specific "ready" events proposed in bug 837633? https://bugzilla.mozilla.org/showdependencytree.cgi?id=837633&hide_resolved=1
Flags: needinfo?(dave.hunt)
Keywords: perf
Whiteboard: [c=automation p= s= u=]
It could be different, in that before the scan has finished the app may well be ready to use. For this bug we want to perform scroll FPS tests, so we want to be sure that all thumbnails have finished loading.
Flags: needinfo?(dave.hunt)
In the gaia performance measurements, we can record events sent at various moments: when the app is ready, when the app has finished rendering, etc. Main problem is that they don't currently work (see bug 912541, bug 915156 and bug 915158).
I believe this is covered by the perfomance related events such as moz-app-loaded and moz-app-visually-complete. Please reopen if this is not the case.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.