Closed
Bug 536730
Opened 15 years ago
Closed 14 years ago
Update addonsAPI to match the latest requirements
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
(Whiteboard: [lib][mozmill-doc-needed])
Attachments
(3 files)
(deleted),
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
The getElement method which has been added to the DownloadsAPI (bug 536278) to make it easier to retrieve elements from the Downloads Manager should be ported to other API's too. That will make tests much cleaner and will require much less update orgies when structures in the XUL or HTML code changes.
Assignee | ||
Updated•15 years ago
|
Blocks: 552913
Summary: [shared module] Apply getElement method from DownloadsAPI to other API's → [shared module] Update addonsAPI to match the latest requirements
Assignee | ||
Comment 1•15 years ago
|
||
We should have a separate bug for each shared module. Using this bug for the addons API.
Assignee | ||
Updated•15 years ago
|
Whiteboard: [mozmill-doc-needed]
Assignee | ||
Comment 2•15 years ago
|
||
This has been gotten a bigger patch as expected. All changes lift the API to our current style now. I have also fixed broken tests which failed due to problems in the API.
Attachment #440487 -
Flags: review?(anthony.s.hughes)
Attachment #440487 -
Flags: review?(anthony.s.hughes) → review+
Assignee | ||
Comment 3•15 years ago
|
||
This patch is dependent on patch 1 and fixes some leftovers. It also uses the preview website whenever possible. That way we do not mess around with download numbers and could even find regressions on AMO before they release a new version.
Attachment #440768 -
Flags: review?(anthony.s.hughes)
Assignee | ||
Comment 4•15 years ago
|
||
This is the combined patch from the above two patches. I will already attach it on that bug because I'm away tomorrow and give Anthony some time for the review. It works well on all my platforms locally.
Attachment #440771 -
Flags: review?(anthony.s.hughes)
I'm unable to apply the follow-up patch for the default branch. I pulled a new copy of the repository, applied the first patch, then applied the follow-up patch. The first patch applies ok, but the second patch fails like so:
applying updateAddonsAPI2
patching file firefox/restartTests/testExtensionInstallGetAddons/test1.js
patching file firefox/restartTests/testThemeInstallUninstall/test1.js
patching file firefox/testAddons/testDisableEnablePlugin.js
patching file firefox/testAddons/testSearchAddons.js
patching file shared-modules/testAddonsAPI.js
Hunk #1 FAILED at 7
1 out of 6 hunks FAILED -- saving rejects to file shared-modules/testAddonsAPI.js.rej
patch failed to apply
firefox/restartTests/testExtensionInstallGetAddons/test1.js
firefox/restartTests/testThemeInstallUninstall/test1.js
firefox/testAddons/testDisableEnablePlugin.js
firefox/testAddons/testSearchAddons.js
shared-modules/testAddonsAPI.js
patch failed, rejects left in working dir
errors during apply, please fix and refresh updateAddonsAPI2
Other than this, code looks fine.
The 1.9.1 patch also fails to apply on a new pull of the 1.9.1 branch:
applying updateAddonsAPI
cannot create firefox/restartTests/testExtensionInstallGetAddons/test1.js: destination already exists
firefox/helperClasses/testAddonsAPI.js
patch failed, rejects left in working dir
errors during apply, please fix and refresh updateAddonsAPI
Code looks fine otherwise.
Assignee | ||
Comment 7•14 years ago
|
||
Anthony, you should clean up your local repository before you apply any patches. Run a 'hg stat' to see which files have been modified locally. Both patches apply cleanly for me.
Given your comments you are fine with the patches and gave a r+ in words. I will check those changes into our repository so the next test-run will show us the results.
Assignee | ||
Comment 8•14 years ago
|
||
Comment on attachment 440768 [details] [diff] [review]
Follow-up v1 (default)
r+ as given by comment 6.
Attachment #440768 -
Flags: review?(anthony.s.hughes) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #440771 -
Flags: review?(anthony.s.hughes) → review+
Assignee | ||
Comment 9•14 years ago
|
||
Comment on attachment 440771 [details] [diff] [review]
Patch v1 (mozilla1.9.1)
r+ as given by comment 7.
Assignee | ||
Comment 10•14 years ago
|
||
Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/b26e11ac94c4
http://hg.mozilla.org/qa/mozmill-tests/rev/0f9535ee2387
http://hg.mozilla.org/qa/mozmill-tests/rev/ced1cfd9c481
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 11•14 years ago
|
||
(In reply to comment #7)
> Anthony, you should clean up your local repository before you apply any
> patches. Run a 'hg stat' to see which files have been modified locally. Both
> patches apply cleanly for me.
>
I'm using a brand new pull of the repository to a new folder. I'm not modifying the .js files in the tree at all before applying the patch, so I don't understand why this would be considered "dirty" from initial pull unless there is something wrong in the repo. I'll take this issue to email.
Assignee | ||
Updated•14 years ago
|
Assignee: hskupin → nobody
Component: Mozmill → Mozmill Tests
QA Contact: mozmill → mozmilltests
Summary: [shared module] Update addonsAPI to match the latest requirements → Update addonsAPI to match the latest requirements
Whiteboard: [mozmill-doc-needed] → [shared module][mozmill-doc-needed]
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → hskupin
Assignee | ||
Comment 12•14 years ago
|
||
Move of Mozmill Test related project bugs to newly created components. You can
filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Product: Testing → Mozilla QA
Assignee | ||
Updated•13 years ago
|
Component: Mozmill Tests → Mozmill Shared Modules
Assignee | ||
Updated•13 years ago
|
Component: Mozmill Shared Modules → Mozmill Tests
Assignee | ||
Updated•13 years ago
|
Whiteboard: [shared module][mozmill-doc-needed] → [lib]
Assignee | ||
Updated•13 years ago
|
Whiteboard: [lib] → [lib][mozmill-doc-needed]
Updated•5 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•