1 ! Copyright (C) 2009 Doug Coleman, Keith Lazuka
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: accessors images.png images.testing io.directories
4 io.encodings.binary io.files kernel sequences tools.test ;
6 ! Test files from PngSuite (https://www.libpng.org/pub/png/pngsuite.html)
8 ! The subset of the suite that should work given the current implementation.
9 "vocab:images/testing/png" [
77 } [ png-image decode-test ] each
80 "1529.png" binary <file-reader> load-png
86 "<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.4.0\">\n <rdf:RDF xmlns:rdf=\"https://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <rdf:Description rdf:about=\"\"\n xmlns:exif=\"https://ns.adobe.com/exif/1.0/\">\n <exif:PixelXDimension>77</exif:PixelXDimension>\n <exif:PixelYDimension>71</exif:PixelYDimension>\n </rdf:Description>\n </rdf:RDF>\n</x:xmpmeta>\n"
88 "1529.png" binary <file-reader> load-png
89 itexts>> first [ keyword>> ] [ text>> ] bi
95 "vocab:images/testing/png/suite" [
261 } [ png-image decode-test ] each
264 "vocab:images/testing/png/suite/bads" [
281 } [ png-image image-load-must-fail ] each