1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 07:38:07 +02:00

Moves Uint32ArrayView and hasCanvasTypedArrays into compatibility.js.

This commit is contained in:
Yury Delendik 2017-04-13 13:16:35 -05:00
parent 74b31ab18f
commit 30bee9fe0c
7 changed files with 83 additions and 110 deletions

View file

@ -53,7 +53,7 @@ describe('MurmurHash3_64', function() {
});
it('correctly generates a hash from a Uint32Array', function() {
var hash = new MurmurHash3_64();
hash.update(new Uint32Array(sourceCharCodes));
hash.update(new Uint32Array(new Uint8Array(sourceCharCodes).buffer));
expect(hash.hexdigest()).toEqual(hexDigestExpected);
});