Use SingleFile to create snapshots of web pages

This commit is contained in:
Fletcher Hazlehurst 2020-07-17 15:14:10 -07:00
parent 785b6dd408
commit 0fba08b3c9
13 changed files with 1924 additions and 54 deletions

View file

@ -59,6 +59,15 @@ describe("Zotero.Utilities.Internal", function () {
});
describe("#decodeUTF8()", function () {
it("should properly decode binary string", async function () {
let text = String.fromCharCode.apply(null, new Uint8Array([226, 130, 172]));
let utf8 = Zotero.Utilities.Internal.decodeUTF8(text);
assert.equal(utf8, "€");
});
});
describe("#delayGenerator", function () {
var spy;