Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Add interlace encoding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Erz committed Sep 22, 2015
1 parent 3a8634d commit 8f86d94
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
Binary file added test/png/PngSuite/interlace/no_interlace_enc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/png/PngSuite/interlace/with_interlace_enc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions test/png/encode/index.js
Expand Up @@ -17,6 +17,7 @@ describe('Encode', function () {
});

require('./filter');
require('./interlace');

require('./ancillary');
require('./custom');
Expand Down
45 changes: 45 additions & 0 deletions 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
}
});
});
});

0 comments on commit 8f86d94

Please sign in to comment.