Erik A. Hanson's Weblog

Archive for August, 2007

Big New Feature In JsUnit 2.2 alpha 25

Posted: Monday, August 13th, 2007    Tags: Javascript, JsUnit, Unit Testing

In order to run all test functions in a test page, JsUnit naturally needs to know what those test functions are. It’s able to get a list of those functions from Firefox, Safari and Opera, but it’s not able to get them from Internet Explorer. So in IE, JsUnit has to resort to searching the text of all scripts for strings that look like test function names. Unfortunately, it doesn’t understand comments so commented-out test functions will end up running anyway.

An AppleScript to Clean Up My Downloads Folder

Posted: Saturday, August 11th, 2007    Tags: AppleScript, Mac OS X

My downloads folder always gets so full after a while that I have a hard time finding things. I like to keep stuff around for a little while in case I need it again, and if I have the space, I like to keep things around for a long time, just in case. So I wrote a simple AppleScript to move old files to an “Old” subdirectory.

Minor New Features In JsUnit 2.2alpha24

Posted: Thursday, August 9th, 2007    Tags: Javascript, JsUnit, Unit Testing

I added a few new features to JsUnit and tagged it as version 2.2 alpha 24: new log button, new URL parameters, and easier suite creation.