Port of rikaikun (which is a port of rikaichan, which is a port of rikaiXUL) to Web Extensions.
git clone --recursive https://github.com/birtles/rikaichamp.git
npm install
For manual testing you can use
npm start
Which will run:
web-ext run --bc --start-url __tests__/playground.html
The --bc
just brings up the browser console immediately so you can check for
any warnings produced at startup.
Add -p default
if you want to use your regular browsing profile so you can
easily test sites that require a login such as Twitter and Facebook. e.g.
npm start -- -p default
Likewise, if web-ext
is bringing up the wrong version of Firefox or can't find it, you can specify to use, e.g. Nightly using -f nightly
. e.g.
npm start -- -f nightly
npm test
If you have trouble running the SlimerJS tests using the above, you can just run the unit tests and browser tests separately:
./node_modules/.bin/jest
firefox __tests__/rikaicontent.html
For debugging SlimerJS something like the following should work:
SLIMERJSLAUNCHER=/opt/firefox/firefox ./node_modules/.bin/slimerjs utils/slimerjs-test-runner.js __tests__/rikaicontent.html --debug=true
That's assuming that you have a nightly build at /opt/firefox/firefox
. If
you're lucky, SlimerJS might just pick up the right version without using
SLIMERJSLAUNCHER
. The UA string is printed at the beginning of the test run so
you can check which version is being used.
Regular running:
MOZ_HEADLESS=1 SLIMERJSLAUNCHER=/opt/firefox/firefox ./node_modules/.bin/slimerjs utils/slimerjs-test-runner.js __tests__/rikaicontent.html