Closed Bug 971625 Opened 11 years ago Closed 11 years ago

[settings] refactor marionette test for support panel

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gasolin, Assigned: gasolin)

References

Details

Attachments

(1 file)

Overview Description: Refactor marionette test for support 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 support panel Expected Results: fix criteria addressed by Evan Reproducibility: 100% Additional Information: Please refer to bug 969265 for more information.
No longer blocks: 969265
Blocks: 956210
Blocks: 973448
Assignee: nobody → gasolin
Comment on attachment 8376982 [details] [review] pull request redirect to github refactor to fit jshint, and only enable test without SIM custom
Attachment #8376982 - Flags: review?(evanxd)
Attachment #8376982 - Flags: review?(arthur.chen)
Comment on attachment 8376982 [details] [review] pull request redirect to github Can we re-enable the tests with SIM custom? I believe that we disabled them because of there is no support.json file in the resource folder. I would suggest to mock the loadJSON function and make it returns a mock object of the support information for testing.
Attachment #8376982 - Flags: review?(arthur.chen)
Hi Arthur, If we could access loadJSON function in window.xxx.loadJSON. We could just do ``` client.executeScript(function() { var window = window.wrappedJSObject; window.xxx.loadJSON({ json: data }); }); ``` to let it get the json data. How do you think? But why could we not just create the json file in the resource folder? We just cannot do that technically, or?
The approach looks good! support.json is a customization option. I think mocking the function would be easier and robust in this case.
Comment on attachment 8376982 [details] [review] pull request redirect to github It looks good.
Attachment #8376982 - Flags: review?(evanxd) → review+
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: