Closed
Bug 932750
Opened 12 years ago
Closed 11 years ago
Add helper methods to GaiaData to get and set Gecko prefs
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect)
Tracking
(b2g-v1.2 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
b2g-v1.2 | --- | fixed |
People
(Reporter: bsilverberg, Assigned: bsilverberg)
References
Details
(Whiteboard: [gaia-ui-test][mentor=bsilverberg][lang=py])
Attachments
(2 files)
These methods should be added to [1]. At this point I'm not sure if set will work, and we only need get for now, but it's worth investigating and trying to get set working now as well.
Sample code for getting a Gecko pref is:
self.marionette.execute_script("SpecialPowers.getBoolPref('privacy.donottrackheader.value');", special_powers=True)
Sample for setting a Gecko pref can be seen at [2].
I suggest adding a method for each get and set, and those methods would have to accept both the pref and the datatype, so that the correct JS statement can be crafted.
[1] https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/gaia_test.py#L133
[2] http://dxr.mozilla.org/mozilla-central/source/b2g/chrome/content/settings.js#l434
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → bob.silverberg
Assignee | ||
Comment 1•12 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•12 years ago
|
Attachment #831252 -
Flags: review?(zcampbell)
Attachment #831252 -
Flags: review?(trifandreialin)
Attachment #831252 -
Flags: review?(moz.teodosia)
Attachment #831252 -
Flags: review?(florin.strugariu)
Attachment #831252 -
Flags: review?(andrei.hutusoru)
Assignee | ||
Comment 2•12 years ago
|
||
This should be cherry-picked into v1.2 after it is merged into master.
status-b2g-v1.2:
--- → affected
Assignee | ||
Comment 3•12 years ago
|
||
Thanks for the reviews, folks (but you all forgot to r- the PR). I have updated the PR so please re-review.
Comment 4•12 years ago
|
||
(In reply to Bob Silverberg [:bsilverberg] from comment #3)
> Thanks for the reviews, folks (but you all forgot to r- the PR). I have
> updated the PR so please re-review.
I reviewed, but I wasn't asked for one, so I didn't r- ;)
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Dave Hunt (:davehunt) from comment #4)
> (In reply to Bob Silverberg [:bsilverberg] from comment #3)
> > Thanks for the reviews, folks (but you all forgot to r- the PR). I have
> > updated the PR so please re-review.
>
> I reviewed, but I wasn't asked for one, so I didn't r- ;)
Hey, a review is a review, isn't it? ;)
Assignee | ||
Updated•11 years ago
|
Attachment #831252 -
Flags: review?(dave.hunt)
Updated•11 years ago
|
Attachment #831252 -
Flags: review?(andrei.hutusoru) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 831252 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13644
I have made another update to the PR, which includes squashing the commits.
Attachment #831252 -
Flags: review+ → review?(andrei.hutusoru)
Updated•11 years ago
|
Attachment #831252 -
Flags: review?(florin.strugariu) → review+
Comment 7•11 years ago
|
||
Comment on attachment 831252 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13644
This LGTM, triggered another build on Travis and looks good
Attachment #831252 -
Flags: review?(andrei.hutusoru) → review+
Comment 8•11 years ago
|
||
Comment on attachment 831252 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13644
r+
Attachment #831252 -
Flags: review?(zcampbell)
Attachment #831252 -
Flags: review?(trifandreialin)
Attachment #831252 -
Flags: review?(moz.teodosia)
Attachment #831252 -
Flags: review?(dave.hunt)
Attachment #831252 -
Flags: review+
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Pointer to Github pull-request
Updated•11 years ago
|
Attachment #8334490 -
Flags: review?(trifandreialin)
Attachment #8334490 -
Flags: review?(moz.teodosia)
Attachment #8334490 -
Flags: review?(bob.silverberg)
Updated•11 years ago
|
Attachment #8334490 -
Flags: review?(moz.teodosia) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8334490 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13834
Comments in the PR.
Attachment #8334490 -
Flags: review?(bob.silverberg) → review-
Comment 12•11 years ago
|
||
Comment on attachment 8334490 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/13834
Updated the pull for v1.2
Attachment #8334490 -
Flags: review?(moz.teodosia)
Attachment #8334490 -
Flags: review?(bob.silverberg)
Attachment #8334490 -
Flags: review-
Attachment #8334490 -
Flags: review+
Assignee | ||
Comment 13•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8334490 -
Flags: review?(trifandreialin)
Attachment #8334490 -
Flags: review?(moz.teodosia)
Attachment #8334490 -
Flags: review?(bob.silverberg)
Attachment #8334490 -
Flags: review+
You need to log in
before you can comment on or make changes to this bug.
Description
•