Erik A. Hanson's Weblog

Archive for the 'Javascript' Category

Debugging a JsUnit Test With Firebug

Posted: Thursday, November 16th, 2006    Tags: Howto, Javascript, JsUnit

Sometimes I find that I want to debug a JsUnit test because I’m not quite sure what’s going on in the browser. FireBug has a nice debugger, but I couldn’t get it to work with the JsUnit test runner. I could set breakpoints in JsUnit itself, but any breakpoints in my test would be ignored. And then it hit me: ditch the test runner.

Setting XSL Parameters from Javascript in AJAXSLT

Posted: Sunday, October 23rd, 2005    Tags: Howto, Javascript, XSL

Recently, I was trying to pass some info from my Javascript into my XSL stylesheet. Here’s how I finally did it.

A Mac OS X Web Browser for JavaScript Testing

Posted: Sunday, October 2nd, 2005    Tags: Javascript, My Software

I was playing with a very JavaScript-heavy web page and wanted my automated tests to use a real web browser. I tried running them inside Safari, but it’s a bit annoying to have my tests take control of my browser. Plus, there were caching issues. So I wrote a very simple web browser.

How To Use Google’s Ajaxslt Library

Posted: Friday, September 30th, 2005    Tags: Howto, Javascript, XSL

Google has written an open-source library called Ajaxslt that implements XPath and XSLT in Javascript. It took a bit of playing to get it to work.