There are two test suites, the QUnit test suite and the Mozmill test suite.
git clone git://github.com/scriptish/scriptish.git
hg clone http://hg.mozilla.org/qa/mozmill-tests/
You can also execute tests individually, with specific profiles, and applications using the
mozmill command line tool, read