Skip to content

{ Tag Archives } jquery

jQuery and testing — JSUnit, QUnit, JsSpec [Part 2]

Trying QUnit with jQuery In the JSUnit entry, one of the main problems was with the sequencing of calls. Let’s see how QUnit handles this. QUnit has a simple implementation to this problem: stop() and start() commands to synchronise sequences. The basic approach is that it calls a test function. With the stop() command, it [...]

Also tagged , , , , ,

jQuery and testing – JSUnit, QUnit, JsSpec [Part 1]

Trying JsUnit with JQuery I have started first with JSUnit because it is tried and true (and to tell the truth I thought it would be fine and didn’t bother with a quick search for alternatives). For the impatient, I won’t be going with JSUnit and here are some reasons: the problem is that the [...]

Also tagged , , , , ,

jQuery and testing – JSUnit, QUnit, JsSpec [Part 3]

Trying JsSpec with jQuery This is part three of three. The previous two have been focussed around managing the problem of timing: JSUnit got too hard and QUnit is easy but you still have to manage timings yourself. With JsSpec there is no problem because it is all managed for you. Nice work! Here’s the [...]

Also tagged , , , , ,

jQuery and testing – JSUnit, QUnit, JsSpec [Introduction]

I had been writing a jQuery parser and then realised once I had spiked it that I hadn’t actually written any tests. So, these are some results from a spike in unit testing a jQuery plugin. Some background, the plugin is a results viewer from an xml feed from storyq. So, I have run some [...]

Also tagged , , , , ,

JQuery vs XSLT as REST client for XML resource in the browser

This work is to try and help through thinking about XML results through REST in a browser. If we are going to view the results (in a browser) what are the options that treat the results as a GET resource? Here are the sample files. Conclusions: Parsing XML files is a no brainer to display [...]

Also tagged ,