Closed
Bug 739476
Opened 13 years ago
Closed 12 years ago
Emulator goes to sleep too quickly; interferes with automated tests
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(blocking-basecamp:+)
RESOLVED
FIXED
blocking-basecamp | + |
People
(Reporter: jgriffin, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Currently, the emulator goes to sleep after 60s of inactivity. If the emulator is in the middle of running an automated test, the test will hang, as the test framework gets suspended when the emulator sleeps.
Presumably there will eventually be a way to modify this at runtime. Until such a time, this patch increases the screen timeout from 1 min to 5 mins, which should make running automated tests a lot easier. It also corrects a comment in the code that the pref refers to "minutes"; it should be "seconds".
Comment 1•13 years ago
|
||
I think we can use the settings API here.
Reporter | ||
Updated•13 years ago
|
Attachment #609542 -
Flags: review?(jones.chris.g)
Comment 2•13 years ago
|
||
We should use a different pref js file for the emulator, not change what our phones do.
Comment on attachment 609542 [details] [diff] [review]
patch
I agree with Kan-Ru, this should be a setting. Chrome-privileged code on startup can detect whether it's running in an emulator and change the setting appropriately.
Attachment #609542 -
Flags: review?(jones.chris.g)
Comment 5•12 years ago
|
||
jgriffin, can you verify that this is still an issue? We used to freeze the emulator whenever we turned the screen off, but that shouldn't be the case anymore.
Reporter | ||
Comment 6•12 years ago
|
||
Yes, this got fixed a while ago.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•