L20n/Tests

From MozillaWiki
< L20n
Revision as of 18:59, 24 March 2011 by Gandalf (talk | contribs) (Created page with "== Overview == Xpcshell tests allow us to emulate the browser JS environment and verify that the l20n library does work. == Dependencies == You will need [https://developer.mo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 [1]
  • 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...