]> Cypherpunks repositories - gostls13.git/commit
image/draw: add draw tests where the destination image doesn't start
authorNigel Tao <nigeltao@golang.org>
Thu, 7 Jul 2011 23:54:21 +0000 (09:54 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 7 Jul 2011 23:54:21 +0000 (09:54 +1000)
commitb39afde805f632bfbe5c4be7a68d01db03de2ce8
treeeeb8b5ec1748d7650c0b166c1857e0c443224468
parentd1d466f6207ff0c90e3ae079578399e86328c631
image/draw: add draw tests where the destination image doesn't start
at (0, 0).

Also refactor the test to use the SubImage method rather than monkeying
with an image's Pix and Rect fields.

R=r
CC=golang-dev
https://golang.org/cl/4678045
src/pkg/image/draw/draw_test.go