Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Fellow programmers, how exactly do you unit test a method / function which draws something on the canvas for example?

We don't. Canvas drawing routines are hopefully unit-tested already by their authors. We do write unit tests for calculations and logic to make sure that the values passed to some canvas function are as expected.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: