Closed Bug 968686 Opened 11 years ago Closed 7 years ago

[settings] add marionette test for Date & Time panel

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
1.4 S2 (28feb)
tracking-b2g backlog

People

(Reporter: gasolin, Unassigned)

References

Details

(Whiteboard: [ft:system-platform])

Attachments

(1 file)

Overview Description: Add marionette test for Date & Time panel Steps to Reproduce: 1) run make test-perf APP=settings 2) run make test-integration APP=settings Actual Results: No such integration test for Date & Time panel Expected Results: Write that integration test and make test pass Reproducibility: 100% Additional Information: Please refer to bug 956210 for more information.
Blocks: 969265
No longer blocks: 956210
Assignee: nobody → gduan
Notice: There is no automatic item for changing the date and time on b2g desktop-client, so please make sure the below test code can run on device in the future. Test case spec for the Date & Time panel: Change the "Region" item. >> Make sure the "City" item render correctly. Test case: Change the "Region" and "City" item. >> Make sure the mozSettings value is correct. Test case: Change the "Date" and "Time" item. >> Make sure the mozSettings value is correct. If have any question, please discuss here. Thanks. :)
Blocks: 973441
Whiteboard: [ft:system-platform]
Target Milestone: --- → 1.4 S2 (28feb)
Attached file PR to master
Hi Evan, would you mind to recommend how to mock |mozTime| of navigator? This api doesn't work on b2g-desktop , so I'd like to mock it and check if the function really has tried to modify its value. I already tried injecting a mock file, which is just like what email app did, but it doesn't work, it always return me {set: null} when I execute console.log. Please kindly advise. Thanks.
Flags: needinfo?(evanxd)
Hi George, You should return ``` __exposedProps__: { get: 'r', set: 'r' } ``` in the `__defineGetter__`. Please refer to https://github.com/evanxd/gaia/commit/e9b6f7c780e502ebac740e44a9da2583bdf89e84. Thanks.
Flags: needinfo?(evanxd)
Status: NEW → ASSIGNED
move out from 1.4
Blocks: 956210
No longer blocks: 969265
feature-b2g: --- → 2.0
feature-b2g: 2.0 → ---
Blocks: 969264
No longer blocks: 956210
Blocks: 1023735
Assignee: georgeiscoming → nobody
Status: ASSIGNED → NEW
need some work to land it
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: