fix flush block in deflate_slow & enable windowBits test

This commit is contained in:
nik 2014-02-19 10:15:20 -03:00
parent 5ef6eee173
commit 2434495874
2 changed files with 2 additions and 5 deletions

View file

@ -743,11 +743,8 @@ function deflate_slow(s, flush) {
bflush = trees._tr_tally(s, 0, s.window[s.strstart-1]);
if (bflush) {
/*** FLUSH_BLOCK(s, 0); ***/
/*** FLUSH_BLOCK_ONLY(s, 0) ***/
flush_block_only(s, false);
if (s.strm.avail_out === 0) {
return BS_NEED_MORE;
}
/***/
}
s.strstart++;

View file

@ -72,7 +72,7 @@ describe('Deflate levels', function () {
});
describe.skip('Deflate windowBits', function () {
describe('Deflate windowBits', function () {
it('windowBits 15', function(done) {
testDeflate(zlib.createDeflate, pako.deflate, samples, { windowBits: 15 }, done);