You can save an expected result image (as something lossless like PNG) and 
use canvas to pixel by pixel assert your rendering with the expected 
result. It may not be quick, but it'll work.

On Friday, February 24, 2012 11:50:06 AM UTC-6, ryandesign wrote:
>
> I have not gotten into test-driven development yet, and partly it's 
> because I don't see how to apply it to the (canvas) graphics library I'm 
> currently working on. Whenever I work on a new feature, I develop a "test" 
> that shows how the library does not implement the feature; then I implement 
> the feature until the test works. But determining whether it works relies 
> on a visual inspection by me in the browser. It seems like I would want an 
> automated way to run all these tests in several browsers, to ensure that 
> whatever I'm changing next doesn't break something I had working before. 
> Are any of the lovely test libraries people are using around here suitable 
> for this?
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to