Today John Resig of jQuery fame released the FireUnit extension, which provides a method for unit testing javascript, integrated with Firebug. Seeing as how jQuery itself has become such an integral part of most Drupal developers' work, this looks very promising.
You can read his post about it over here.





