Xpcshell tests allow us to emulate the browser JS environment and verify that the l20n library does work.
You will need xpcshell.
- Clone http://hg.mozilla.org/users/zbraniecki_mozilla.com/l20n
- Edit ./l20n/tests/test.sh to point to your local run-mozilla.sh and xpcshell
- sh ./test.sh
Currently there are two tests:
- example1 is just a demo of how UI and dynamic code can use l20n entities
- example2 is a small unit test suite for very similar subset of features
More tests to come...