From 8f86d9484359c9fcad86bb0c6dc49a95b8f587eb Mon Sep 17 00:00:00 2001 From: Marcel Erz Date: Mon, 21 Sep 2015 23:56:20 -0700 Subject: [PATCH] Add interlace encoding tests --- .../PngSuite/interlace/no_interlace_enc.png | Bin 0 -> 224 bytes .../PngSuite/interlace/with_interlace_enc.png | Bin 0 -> 301 bytes test/png/encode/index.js | 1 + test/png/encode/interlace.js | 45 ++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 test/png/PngSuite/interlace/no_interlace_enc.png create mode 100644 test/png/PngSuite/interlace/with_interlace_enc.png create mode 100644 test/png/encode/interlace.js 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 0000000000000000000000000000000000000000..702cf5edd1d46bd036d39d1032dde55c0123f42d GIT binary patch literal 224 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJ<(@8%Ar*6uUOCOzpuppD@!x;{ z$A=Prt>kHQLj!&;B9b4 zsY6FNo6N&|Mm>6y9*Qz*)_hlXlB<;pXLI>vexId zs9bVy=Q|m%Jvs`X1D8GzeDsMSC9?ARu41jiNQN%&IL7A7j5>V1VKr=99=^{wdYri> X_|lq)muihbCo_1u`njxgN@xNAPYzU| literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..37f0030679871e53c758f72a90be0bf05e64cc3e GIT binary patch literal 301 zcmV+|0n+}7P)vH112~Z|n>8WyJWWv?Tx3%H6dw@<{CD87V z?uxy57pE(6y8_j3N-Mycs;oeptJmkY#P>V__S4d=n<{W)00000NkvXXu0mjfhy;GH literal 0 HcmV?d00001 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 + } + }); + }); +});