Closed
Bug 936505
Opened 11 years ago
Closed 10 years ago
Neaten up test_settings_wallpaper
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Bebe, Assigned: RobertC)
Details
(Whiteboard: [gaia-ui-test][mentor=bebe][lang=py])
Attachments
(1 file)
Make test_settings_wallpaper use the Activities region Get the wallpaper settings from the proper Pref rather than just the settings HTML
Reporter | ||
Updated•11 years ago
|
Whiteboard: [mentor=bebe][lang=py]
Reporter | ||
Updated•11 years ago
|
Whiteboard: [mentor=bebe][lang=py] → [gaia-ui-test][mentor=bebe][lang=py]
Comment 1•11 years ago
|
||
I see the test using the settings HTML displayed on page, but what do you mean by Pref. How can I get it in the test?
Comment 2•11 years ago
|
||
I *think* this will be what you want! It should be the same value as `display_settings.wallpaper_preview_src` but it comes from the proper preferences database so we will be checking that the Gaia app sets the value into the database properly. self.marionette.execute_script("SpecialPowers.getBoolPref('wallpaper.image');", special_powers=True)
Updated•11 years ago
|
Priority: -- → P3
Assignee | ||
Comment 3•10 years ago
|
||
I will work on this bug
Assignee: nobody → robert.chira
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8360449 -
Flags: review?(florin.strugariu)
Attachment #8360449 -
Flags: review?(bob.silverberg)
Attachment #8360449 -
Flags: review?(andrei.hutusoru)
Assignee | ||
Comment 5•10 years ago
|
||
I did not understand the "Get the wallpaper settings from the proper Pref rather than just the settings HTML" part Running self.marionette.execute_script("SpecialPowers.getBoolPref('wallpaper.image');", special_powers=True) returns an error Did the "wallpaper.image" pref name change?
Reporter | ||
Comment 6•10 years ago
|
||
I found a setting: "wallpaper.image" Maybe we can use that
Assignee | ||
Comment 7•10 years ago
|
||
Updated pull request to use the "wallpaper.image" setting which will fail if the images have the same size. The previous assertion would not fail if the same image is selected.
Comment 8•10 years ago
|
||
Comment on attachment 8360449 [details] [review] Pull request See comments in the PR. I addition to some questions, the test is failing for me on b2g desktop.
Attachment #8360449 -
Flags: review?(bob.silverberg) → review-
Assignee | ||
Updated•10 years ago
|
Attachment #8360449 -
Flags: review- → review?(bob.silverberg)
Reporter | ||
Updated•10 years ago
|
Attachment #8360449 -
Flags: review?(florin.strugariu) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8360449 [details] [review] Pull request The test works nice, the code looks ok, but I have 1 comment that I want to be addressed.
Attachment #8360449 -
Flags: review?(andrei.hutusoru) → review-
Comment 10•10 years ago
|
||
Comment on attachment 8360449 [details] [review] Pull request Looking good. Just a couple of comments left to address in the pull request.
Attachment #8360449 -
Flags: review?(bob.silverberg) → review-
Assignee | ||
Updated•10 years ago
|
Attachment #8360449 -
Flags: review?(florin.strugariu)
Attachment #8360449 -
Flags: review?(bob.silverberg)
Attachment #8360449 -
Flags: review?(andrei.hutusoru)
Attachment #8360449 -
Flags: review-
Attachment #8360449 -
Flags: review+
Reporter | ||
Updated•10 years ago
|
Attachment #8360449 -
Flags: review?(florin.strugariu) → review+
Comment 11•10 years ago
|
||
Comment on attachment 8360449 [details] [review] Pull request Looks good now. Just resolve the merge conflict and it will be ready to be merged. Leaving my r? to remind me to merge, unless someone else does it first.
Comment 12•10 years ago
|
||
Comment on attachment 8360449 [details] [review] Pull request looks good!
Attachment #8360449 -
Flags: review?(andrei.hutusoru) → review+
Comment 13•10 years ago
|
||
Comment on attachment 8360449 [details] [review] Pull request Landed in https://github.com/mozilla-b2g/gaia/commit/92d46c97f821ad3e4718b68cb62411b388bfd158
Attachment #8360449 -
Flags: review?(bob.silverberg) → review+
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•