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)

ARM
Android
defect
Not set
normal

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
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.
Bug 1185783 - Part 1: Add head.js with promiseBrowserEvent. r?margaret
Attachment #8669225 - Flags: review?(margaret.leibovic)
Bug 1185783 - Part 2: Move promiseNotification to head.js. r?margaret
Attachment #8669226 - Flags: review?(margaret.leibovic)
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 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 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 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+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: