667
edits
Changes
no edit summary
$ cd mozilla/''objdir''/extensions/firstxpcom
$ make check
* You can safely delete '''mozilla/extensions/firstxpcom/test/unit/test_sample.js''', as it is just an example of basic tests you can run:
/* This is the most basic testcase. It makes some trivial assertions,
* then sets a timeout, and exits the test harness when that timeout
* fires. This is meant to demonstrate that there is a complete event
* system available to test scripts.
* Available functions are described at:
* http://developer.mozilla.org/en/docs/Writing_xpcshell-based_unit_tests
*/
function run_test() {
do_check_eq(57, 57)
do_check_neq(1, 2)
do_check_true(true);
do_test_pending();
do_timeout(100, "do_test_finished();");
}
== Resources ==