l20n/l20n.js — pull request #10 by stasm (2012-09-19 12:02:35+00:00)
Title: Framework for testing l20n.js code + a few testcases

I want to be able to use Mocha for lib testing. This means server-side XHR with node-XMLHttpRequest and serving the LOL files off of the file system via a simple HTTP server written in node.

See tests/lib/context.js for some docs and a few testcases. I had to disable the entity fallback testcases for now due to some problems with the synchronous XHR in node.

See https://github.com/l20n/lol-fixtures/tree/master/sets for LOL files for each testing scenario.