Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing #10

Open
automata opened this issue Apr 25, 2014 · 4 comments
Open

Testing #10

automata opened this issue Apr 25, 2014 · 4 comments

Comments

@automata
Copy link
Member

Implement tests. It is easy to imagine tests to commands, but should we go deeper and test the rendered canvas?

@forresto
Copy link
Member

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.

@forresto
Copy link
Member

We'll need some mojo to tell Travis to install node-canvas' deps.

forresto added a commit that referenced this issue Apr 29, 2014
@forresto
Copy link
Member

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.

forresto added a commit that referenced this issue Apr 29, 2014
@forresto
Copy link
Member

652e9f1 fixed that issue, tests pass now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants