Closed Bug 948383 Opened 11 years ago Closed 11 years ago

Move all `home button event` into GaiaDevice class

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect, P2)

Other
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zcampbell, Assigned: akruglov)

Details

(Whiteboard: [gaia-ui-test][mentor=zac][lang=py])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
zcampbell
: review+
rwood
: review+
AndreiH
: review+
Details | Review
In line with our plan to use GaiaDevice as a representation of all non-UI interactions with the device, move anywhere we have:
self.marionette.execute_script("window.wrappedJSObject.dispatchEvent(new Event('home'));")

into a method in GaiaDevice, named appropriately.

Migrate all tests to use this method.
Whiteboard: [gaia-ui-test][mentor=zac][lang=py]
I'd like to work on this issue.
Assignee: nobody → akruglov
Please, review. Who else can I ask for review?
Attachment #8346102 - Flags: review?(zcampbell)
Comment on attachment 8346102 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/14587

I will r? properly tomorrow but in the meantime we need to get rwood's r? on this too as it affects some of his tests.
Attachment #8346102 - Flags: review?(rwood)
Comment on attachment 8346102 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/14587

Looks good and both of the updated endurance tests work fine. Thank you!
Attachment #8346102 - Flags: review?(rwood) → review+
Attachment #8346102 - Flags: review+
Comment on attachment 8346102 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/14587

r+ too!
Attachment #8346102 - Flags: review?(zcampbell) → review+
Let's merge this when the tree is reopen
Merged in https://github.com/mozilla-b2g/gaia/commit/e1d81dbebb8abdfbc5f222ac1a2ae1055017a8f2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Please ensure to squash merges before landing. Each commit should link to a bug number for easier tracking and cleaner commit history.
Hi, we backed out the fix due to not being squashed. I also had time to re-apply and squash the commits. The new commit has landed here (with proper author credit): https://github.com/mozilla-b2g/gaia/commit/62d2e42a1499c547e46d9c21b17bdebce9f04e12

Adding needsinfo? for Florian to see why we merged this pull request, and to make sure we don't do so again in the future.
Flags: needinfo?(florin.strugariu)
Thanks for fixing this up for us Kevin, it definitely shouldn't have been merged without the squash beforehand.
My mistake Kevin.  
I did not notice there where multiple commits in that pull.
Promise it will never happen again
Flags: needinfo?(florin.strugariu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: