News for hackers. Stuff that matters.
Re:Ask HN: How do you familiarize yourself with a new codebase? by klibertp on Friday June 26, 2015 @08:12PM (#9788471)
> 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.

There are no comments on this comment yet.