This project contains the implementation of the Firefox browser.logins API. See https://bugzilla.mozilla.org/show_bug.cgi?id=1285270 for more details.
This is a hack while we work out a smoother process but for now:
-
From a mozilla-central source tree, create a symlink for
tests/test_login.js
in the webextensions xpcshell directory with the command:ln -s (path/to/this/repo)/tests/test_ext_logins.js toolkit/components/extensions/test/xpcshell
-
Add the following line to
toolkit/components/extensions/test/xpcshell/xpcshell.ini
:[test_ext_logins.js]
-
Re-build the test database (
./mach build
or your favorite more targetted variant) -
Run the test:
./mach test toolkit/components/extensions/test/xpcshell/test_ext_logins.js