Following my previous post I discovered a very helpful email in my inbox from Johannes Link, the author of MockMe, who provided an example of using MockMe to unit test my PrototypeJS classes.
One of the benefits of MockMe, vs JSMock or Jack, is it’s observance of the 3-A’s pattern (Arrange Act Assert), I quote:
Arrange is [...]
I’ve long been used to having decent testing frameworks in Java / Groovy / Grails however its taken me a while to stumble upon similar ways to test in Javascript. I tried my hand at using JSMock and then tried MockMe. They both seem very capable but I wanted something quick to test a class [...]
Well who would ever have thought, but according to Google the performance of IE has been proved as slower than even Rhino, the Javascript parser and execution library!
It never ceases to amaze me how so much money can be spent on making such a pile of stink!
I have recently been attempting to get my head around Open Flash Chart to, at the very least, get an equivalent ‘Hello World’ version running before I run off customising it. Should be simple right? Well yes, once you get around a real showstopping gotcha which isn’t documented out there.
The starting point, this tutorial example. [...]