Unit Testing

Introduction

script.aculo.us provides a complete set of classes and methods for Javascript unit testing.

To use the unit test library, you must include unittest.js in your HTML file. See Test.Unit.Runner for a complete example on how this works.

script.aculo.us “eats its own dog food,” and includes unit and functional tests for itself, inside the test folder of the repository.

Note that as of August 2005 some of the tests will fail in browsers other than Firefox (due to implementation differences and some of the DOM functions used not implemented in some browsers).

Classes

Examples

A short tutorial (second half of the page) demonstrating the use of the script.aculo.us test harness for Javascript, prepared for the Linux Users Group, Villafranca, Verona, Italy.