QUnit is a powerful, easy-to-use JavaScript unit test suite. If you're new to QUnit or even just new to unit testing, you might want to check out the Introduction to JavaScript Unit Testing. There's also a QUnit Cookbook on the main site.

QUnit has no dependencies and works in all browsers.