Closed
Bug 1061135
Opened 11 years ago
Closed 11 years ago
The 12/24 hour format ui tests have race condition issues.
Categories
(Firefox OS Graveyard :: Gaia::Calendar, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: evanxd, Assigned: evanxd)
References
Details
Attachments
(2 files, 1 obsolete file)
There are many 12/24 hour format tests are failed intermittently. These[3][4] are the failures.
The root cause probably is that when navigator.mozHour12 is the default value as `null`[1] Calendar app render the date/time element by 24 format[2] but the hour format settings value is actually "12 hour format". So the race condition problem of Gij tests will probably happen.
[1] https://github.com/mozilla-b2g/gaia/blob/master/shared/js/date_time_helper.js#L15
[2] https://github.com/mozilla-b2g/gaia/blob/master/apps/calendar/js/calc.js#L48-L50
[3] https://tbpl.mozilla.org/php/getParsedLog.php?id=47159527&tree=Gaia-Try&full=1#error0
[4] https://tbpl.mozilla.org/php/getParsedLog.php?id=47158799&tree=Gaia-Try#error0
| Assignee | ||
Comment 1•11 years ago
|
||
We could disable the related tests first, then find a good way to fix this issue.
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Comment 3•11 years ago
|
||
| Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8482206 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/23566
Hi Miller,
Could you give me feedback for the patch?
Thanks.
Attachment #8482206 -
Flags: feedback?(mmedeiros)
| Assignee | ||
Comment 5•11 years ago
|
||
These are the failed jobs:
1. https://tbpl.mozilla.org/php/getParsedLog.php?id=47161917&tree=Gaia-Try#error0
2. https://tbpl.mozilla.org/php/getParsedLog.php?id=47162956&tree=Gaia-Try#error0
3. https://tbpl.mozilla.org/php/getParsedLog.php?id=47161944&tree=Gaia-Try#error2
4. https://tbpl.mozilla.org/php/getParsedLog.php?id=47162417&tree=Gaia-Try#error3
5. https://tbpl.mozilla.org/php/getParsedLog.php?id=47161911&tree=Gaia-Try#error0
Comment 6•11 years ago
|
||
Comment on attachment 8482206 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/23566
I think we should not change the application code (in a weird way) to avoid test errors.. added more comments on github.
Attachment #8482206 -
Flags: feedback?(mmedeiros)
| Assignee | ||
Comment 7•11 years ago
|
||
Yes, you're right.
But after investigate deeper,
I found out the root cause of this issue is that
the `navigator.mozHour12` is just always `null`, and it is a bug of `navigator.mozSettings`.
I will file a bug for it, and that will block this bug.
| Assignee | ||
Comment 8•11 years ago
|
||
Sorry, the `navigator.mozHour12` keeps as `null` "intermittently".
| Assignee | ||
Comment 9•11 years ago
|
||
Attachment #8482206 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•11 years ago
|
||
The tests are passed in try-server for 11 times[1]. So let's re-enable them.
[1] https://tbpl.mozilla.org/?rev=dec42eca16525c5d04e565ffe1caf9a28a7a53df&tree=Gaia-Try
| Assignee | ||
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•