issues
search
creativescala
/
doodle
Compositional vector graphics in Scala / Scala.JS
https://creativescala.org/doodle/
Apache License 2.0
327
stars
75
forks
source link
Add tests for `BufferedImageWriter`
#147
Closed
noelwelsh
closed
4 weeks ago
noelwelsh
commented
5 months ago
There are several ways this can be tested:
convert to
BufferedImage
and then save should be the same as writing directly to a file
convert to
BufferedImage
, load as bitmap, and then convert to
BufferedImage
again should create the same image (make sure the
Frame
margin is 0)
using the existing golden testing infrastructure, convert to
BufferedImage
, save, and check it's the same as a previously created image.
There are several ways this can be tested:
BufferedImage
and then save should be the same as writing directly to a fileBufferedImage
, load as bitmap, and then convert toBufferedImage
again should create the same image (make sure theFrame
margin is 0)BufferedImage
, save, and check it's the same as a previously created image.