Closed
Bug 1071714
Opened 11 years ago
Closed 7 years ago
Write test for bug 1034999 (XUL/style overlays should ignore hashes)
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: Gijs, Unassigned, Mentored)
References
Details
(In reply to Benjamin Smedberg [:bsmedberg] from bug 1034999 comment #15)
> It should be possible to test this by registering a manifest using
> nsIComponentRegistrar.autoRegister pointing to a test-only manifest.
See the other tests under the chrome/ dir in mozilla-central.
Flags: qe-verify-
Flags: in-testsuite+
Flags: in-qa-testsuite-
Flags: firefox-backlog+
Comment 1•11 years ago
|
||
Gijs, would you mentor somebody through this?
Flags: needinfo?(gijskruitbosch+bugs)
| Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Mike Hoye [:mhoye] from comment #1)
> Gijs, would you mentor somebody through this?
Sure. Probably not a good first bug, but either way. The test should live in chrome/test/unit, and be modeled after e.g.
http://mxr.mozilla.org/mozilla-central/source/chrome/test/unit/test_bug848297.js
in that it should define a MANIFESTS array that points to a manifest in the data directory that is used for testing, and call registerManifests(MANIFESTS) to register it.
The manifest should contain overlay and style registrations both with and without hashes in the first URL (see: https://developer.mozilla.org/en-US/docs/Chrome_Registration#overlay and https://developer.mozilla.org/en-US/docs/Chrome_Registration#style ).
Then you should get the chrome registry as in the example, and QueryInterface it to Ci.nsIXULOverlayProvider.
The test should then verify that calling chromeReg.getXULOverlays() and chromeReg.getStyleOverlays() with the relevant URLs that are overlaid in the manifest (both with and without the hashes) produces the same (correct) results.
Note that the review should probably be done by someone other than me, though I'm happy to provide initial feedback.
Mentor: gijskruitbosch+bugs
Flags: needinfo?(gijskruitbosch+bugs)
| Reporter | ||
Comment 3•7 years ago
|
||
We removed overlays! \o/
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•