noflo-canvas
noflo-canvas copied to clipboard
Testing
Implement tests. It is easy to imagine tests to commands, but should we go deeper and test the rendered canvas?
That would be good for Draw to make sure the commands stick. Could as simple as getImageData 0,0,1,1 Then make sure that's the expected rgb vals.
We'll need some mojo to tell Travis to install node-canvas' deps.
Looks like that might fix cairo on travis, but now there is a component.io snafu.
See https://github.com/noflo/noflo-canvas/blob/master/spec/MakeColor.coffee for an example component test.
https://github.com/noflo/noflo-canvas/commit/652e9f16ca61ebf8b3c07545ad39d07d3deaf1d6 fixed that issue, tests pass now!