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)

x86
macOS
defect
Not set
normal

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
We could disable the related tests first, then find a good way to fix this issue.
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)
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)
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.
Sorry, the `navigator.mozHour12` keeps as `null` "intermittently".
Depends on: 1062171
Attachment #8482206 - Attachment is obsolete: true
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
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.

Attachment

General

Created:
Updated:
Size: