FuncUnit is a testing framework built on QUnit, the official unit testing framework of jQuery. It is a full featured framework for automating user input into forms, and asserting the output and behavior of forms as per unit testing principles.
A fully worked example can be found here.
Due to a recent API change in Chrome, FuncUnit test will NOT work in Chrome. Firefox for Mac OS X and Windows will work. Safari for Mac OS X also works.