Tag QUnit

Writing testable JavaScript code is in my eyes sometimes more complex as writing testable code in other programming
languages. JavaScript has it roots in the web development and the normal environment for JavaScript code was the
web browser. There was always the global document object.
Node.js has changed this assumption.

I made a small plugin for jQuery to get the color of an image pixel. It's called
broilerjs. I wanted to test
the plugin via QUnit, a JavaScript Unit Testing
framework. But I could not find a possibility to simulate a mouse click on special x and y coordinates. But in the
end it was very easy.