(spdyDict)
| 109 | } |
| 110 | |
| 111 | function rawDictionaryTest(spdyDict) { |
| 112 | let output = ''; |
| 113 | const deflate = zlib.createDeflateRaw({ dictionary: spdyDict }); |
| 114 | const inflate = zlib.createInflateRaw({ dictionary: spdyDict }); |
| 115 | inflate.setEncoding('utf-8'); |
| 116 | |
| 117 | deflate.on('data', function(chunk) { |
| 118 | inflate.write(chunk); |
| 119 | }); |
| 120 | |
| 121 | inflate.on('data', function(chunk) { |
| 122 | output += chunk; |
| 123 | }); |
| 124 | |
| 125 | deflate.on('end', function() { |
| 126 | inflate.end(); |
| 127 | }); |
| 128 | |
| 129 | inflate.on('end', common.mustCall(function() { |
| 130 | assert.strictEqual(input, output); |
| 131 | })); |
| 132 | |
| 133 | deflate.write(input); |
| 134 | deflate.end(); |
| 135 | } |
| 136 | |
| 137 | function deflateRawResetDictionaryTest(spdyDict) { |
| 138 | let doneReset = false; |
no test coverage detected
searching dependent graphs…