Get automated tests running with newtab packaged as a built-in addon
Categories
(Firefox :: New Tab Page, task)
Tracking
()
People
(Reporter: mconley, Assigned: mconley)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [hnt-trainhop])
Attachments
(1 file)
Out of the box, it looks like most of the browser mochitests will work properly, but the xpcshell tests will require some finessing to get the built-in addon properly installed and registered before the tests begin.
Updated•10 days ago
|
Assignee | ||
Comment 1•4 days ago
|
||
This alters the xpcshell tests for newtab to install/enable the New Tab built-in
addon if the build-time flag is set for it to be packaged that way. This is
because the addon does the work of mapping resource://newtab and chrome://newtab
URIs to the addon package.
Since the xpcshell tests are testing modules for the most part, they also had
to be modified to lazily load those modules, rather than statically importing
them at the top of the file. This is so that the add_setup() in head.js has a
chance to run before any of the imports occur.
Updated•4 days ago
|
Description
•