FireUnit: JavaScript Unit Testing Extension - Ajaxianより。 FirefoxのFirebugでJavaScrpitのユニットテストができる拡張機能。 テストの書き方は以下のような感じ。 // 単純な true/false テスト fireunit.ok( true, "パスしました!" ); fireunit.ok( false, "失敗しました!" ); // 二つの文字列を比較 // 異なる場合は、diffの結果を表示する fireunit.compare( "The lazy fox jumped over the log.", "The lazy brown fox jumped the log.", "二つの文字列は同じ?" ); // 文字列を正規表現を使って比較 fireunit.reCompare( /The .* fox