Fix zlib level change in clipboard tests
The compression level got changed in 01bb36d4
, but the tests weren't
updated to follow this change.
This commit is contained in:
parent
b40a45a11b
commit
e81602d705
|
@ -3,7 +3,7 @@ const expect = chai.expect;
|
||||||
import RFB from '../core/rfb.js';
|
import RFB from '../core/rfb.js';
|
||||||
import Websock from '../core/websock.js';
|
import Websock from '../core/websock.js';
|
||||||
import ZStream from "../vendor/pako/lib/zlib/zstream.js";
|
import ZStream from "../vendor/pako/lib/zlib/zstream.js";
|
||||||
import { deflateInit, deflate } from "../vendor/pako/lib/zlib/deflate.js";
|
import { deflateInit, deflate, Z_DEFAULT_COMPRESSION } from "../vendor/pako/lib/zlib/deflate.js";
|
||||||
import { encodings } from '../core/encodings.js';
|
import { encodings } from '../core/encodings.js';
|
||||||
import { toUnsigned32bit } from '../core/util/int.js';
|
import { toUnsigned32bit } from '../core/util/int.js';
|
||||||
import { encodeUTF8 } from '../core/util/strings.js';
|
import { encodeUTF8 } from '../core/util/strings.js';
|
||||||
|
@ -54,7 +54,7 @@ function deflateWithSize(data) {
|
||||||
let strm = new ZStream();
|
let strm = new ZStream();
|
||||||
let chunkSize = 1024 * 10 * 10;
|
let chunkSize = 1024 * 10 * 10;
|
||||||
strm.output = new Uint8Array(chunkSize);
|
strm.output = new Uint8Array(chunkSize);
|
||||||
deflateInit(strm, 5);
|
deflateInit(strm, Z_DEFAULT_COMPRESSION);
|
||||||
|
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
strm.input = unCompData;
|
strm.input = unCompData;
|
||||||
|
|
Loading…
Reference in New Issue