L20n/Tests
< L20n
Jump to navigation
Jump to search
Overview
Xpcshell tests allow us to emulate the browser JS environment and verify that the l20n library does work.
Dependencies
You will need xpcshell.
Installation
- 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...