Closed
Bug 1185783
Opened 10 years ago
Closed 9 years ago
Move promiseBrowserEvent (and related helpers) in robocop_head.js - Part II
Categories
(Firefox for Android Graveyard :: Testing, defect)
Tracking
(firefox44 fixed)
RESOLVED
FIXED
Firefox 44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: capella, Unassigned)
Details
Attachments
(2 files)
I accidentally 'subverted' bug 1158925 with a partial patch that I should have just openned on it's own :-/
Let's go ahead with a new bug, with the intent of the original bug 1158925 ...
"Copy pasta all over the place in our JS tests! We should move some of these common helper functions to a shared place."
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/testFindInPage.js#15
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/testTrackingProtection.js#18
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/testHistoryService.js#32
To fix this bug, you should audit our JS tests to find the places we do things like this, and make shared helper methods in here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/robocop_head.js
![]() |
||
Comment 1•10 years ago
|
||
In bug 1184186, many of the robocop tests that implement promiseBrowserEvent have been converted to mochitest-chrome tests and moved to mobile/android/tests/browser/chrome. The mobile chrome tests do not currently share any code across tests, but I imagine that a head.js could be introduced and the chrome tests re-factored.
Comment 2•9 years ago
|
||
Bug 1185783 - Part 1: Add head.js with promiseBrowserEvent. r?margaret
Attachment #8669225 -
Flags: review?(margaret.leibovic)
Comment 3•9 years ago
|
||
Bug 1185783 - Part 2: Move promiseNotification to head.js. r?margaret
Attachment #8669226 -
Flags: review?(margaret.leibovic)
Comment 4•9 years ago
|
||
Comment on attachment 8669225 [details]
MozReview Request: Bug 1185783 - Part 1: Add head.js with promiseBrowserEvent. r?margaret
Bug 1185783 - Part 1: Add head.js with promiseBrowserEvent. r?margaret
Comment 5•9 years ago
|
||
Comment on attachment 8669226 [details]
MozReview Request: Bug 1185783 - Part 2: Move promiseNotification to head.js. r?margaret
Bug 1185783 - Part 2: Move promiseNotification to head.js. r?margaret
Comment 6•9 years ago
|
||
Comment on attachment 8669225 [details]
MozReview Request: Bug 1185783 - Part 1: Add head.js with promiseBrowserEvent. r?margaret
https://reviewboard.mozilla.org/r/21147/#review19067
Nice, thanks for picking this up.
Attachment #8669225 -
Flags: review?(margaret.leibovic) → review+
Comment 7•9 years ago
|
||
Comment on attachment 8669226 [details]
MozReview Request: Bug 1185783 - Part 2: Move promiseNotification to head.js. r?margaret
https://reviewboard.mozilla.org/r/21149/#review19069
Attachment #8669226 -
Flags: review?(margaret.leibovic) → review+
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/c68d71e149200d32b2d66eab23afe651ef0d2aca
Bug 1185783 - Part 1: Add head.js with promiseBrowserEvent. r=margaret
https://hg.mozilla.org/integration/fx-team/rev/6b7da36dcf08a7bf461ecc642a072a74a38da329
Bug 1185783 - Part 2: Move promiseNotification to head.js. r=margaret
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c68d71e14920
https://hg.mozilla.org/mozilla-central/rev/6b7da36dcf08
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•