diff --git a/test/png/PngSuite/interlace/no_interlace_enc.png b/test/png/PngSuite/interlace/no_interlace_enc.png new file mode 100644 index 0000000..702cf5e Binary files /dev/null and b/test/png/PngSuite/interlace/no_interlace_enc.png differ diff --git a/test/png/PngSuite/interlace/with_interlace_enc.png b/test/png/PngSuite/interlace/with_interlace_enc.png new file mode 100644 index 0000000..37f0030 Binary files /dev/null and b/test/png/PngSuite/interlace/with_interlace_enc.png differ diff --git a/test/png/encode/index.js b/test/png/encode/index.js index f61f587..83b41ad 100644 --- a/test/png/encode/index.js +++ b/test/png/encode/index.js @@ -17,6 +17,7 @@ describe('Encode', function () { }); require('./filter'); + require('./interlace'); require('./ancillary'); require('./custom'); diff --git a/test/png/encode/interlace.js b/test/png/encode/interlace.js new file mode 100644 index 0000000..020828d --- /dev/null +++ b/test/png/encode/interlace.js @@ -0,0 +1,45 @@ +// Copyright 2015 Yahoo! Inc. +// Copyrights licensed under the Mit License. See the accompanying LICENSE file for terms. + +var testGen = require('../testGen'); + +describe('Interlace', function () { + + describe('No Interlace', function () { + + testGen.addEncodeTests({ + resourceGroup: [], + resourceFile: 'base', + outputGroup: 'interlace', + outputFile: 'no_interlace', + + imageCheck: true, + width: 32, + height: 32, + + encodeOptions: { + filter: 0, + interlace: 0 + } + }); + }); + + describe('With Interlace', function () { + + testGen.addEncodeTests({ + resourceGroup: [], + resourceFile: 'base', + outputGroup: 'interlace', + outputFile: 'with_interlace', + + imageCheck: true, + width: 32, + height: 32, + + encodeOptions: { + filter: 0, + interlace: 1 + } + }); + }); +});