Closed
Bug 945748
Opened 11 years ago
Closed 10 years ago
page-mod contentScriptWhen option is missing tests
Categories
(Add-on SDK Graveyard :: General, defect, P2)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zombie, Assigned: zombie)
References
Details
Attachments
(1 file)
test each of the three options, in each of the situations: 1) new pages, loaded after the page-mod is creted 2) existing tabs, in various states when the page-mod is created a) just opened b) parsed (onReady) c) fully loaded
Assignee | ||
Comment 2•10 years ago
|
||
it's actually 4 options (counting the default), so times the 4 tests makes 16 new asserts in total. the common logic for these new tests is extracted into a helper function.
Attachment #8356717 -
Flags: review?
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → tomica+amo
Status: NEW → ASSIGNED
Comment 3•10 years ago
|
||
Comment on attachment 8356717 [details] [review] Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1334 In the future you should make sure to request review from an actual person, so it doesn't get lost. You can find suggested reviewers when you upload an attachment and click the 'suggested reviewers' link.
Attachment #8356717 -
Flags: review? → review?(jgriffiths)
Comment 4•10 years ago
|
||
Comment on attachment 8356717 [details] [review] Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1334 Can you review this Matteo?
Attachment #8356717 -
Flags: review?(jgriffiths) → review?(zer0)
Updated•10 years ago
|
Attachment #8356717 -
Flags: review?(zer0) → review-
Assignee | ||
Updated•10 years ago
|
Attachment #8356717 -
Flags: review- → review?(zer0)
Assignee | ||
Comment 5•10 years ago
|
||
Matteo: i (hope) addressed the comments from the PR, so r? again..
Comment 6•10 years ago
|
||
Comment on attachment 8356717 [details] [review] Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1334 Thanks a lot to addressed the previous review's comment! The final code is slightly different from what I had in mind, but is really good work! I r- only because the tests seems not passing; as soon as you fix it I will r+. Check the comments on PR and let me know. I would expect no further issues, so you can squash the commit in just one – as policy we merge on master only one commit per time, so usually we have more commits during the development and review, and then we squash them. If you have any question, feel free to ping me!
Attachment #8356717 -
Flags: review?(zer0) → review-
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8356717 [details] [review] Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1334 (In reply to Matteo Ferretti [:matteo] [:zer0] from comment #6) > only because the tests seems not passing; as soon as you fix it I will r+. most likely because of recent changes in content/worker.js, see comments for details.. > Check the comments on PR and let me know. i addressed all the comments and nits (except one about arrow functions). > I would expect no further issues, so you can squash the commit in just one – done
Attachment #8356717 -
Flags: review- → review?(zer0)
Updated•10 years ago
|
Blocks: sdk/page-mod
Comment 8•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/2d0749b4034cc7ed1b1e693b124913545fa2f3b8 bug 945748 - PageMod.contentScriptWhen tests test that the PageMod is attached at the right time, depending on the contentScriptWhen option value. https://github.com/mozilla/addon-sdk/commit/d20dea064a81a52a70a4be46d0da74e08466c827 Merge pull request #1334 from zombie/945748-test-csWhen fix bug 945748 - PageMod.contentScriptWhen tests @r=ZER0
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Attachment #8356717 -
Flags: review?(zer0) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•