HTML Canvas Unit testing

I wrote an example for unit-testing canvas and other image-y types with Jasmine and js-imagediff.

Jasmine Canvas Unit Testing

I find this to be better than making sure specific methods on a mock Canvas have been invoked because different series of methods may produce the same method. Typically, I will create a canvas with the expected value or use a known-stable version of the code to test a development version against.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)