1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #13640 from Snuffleupagus/issue-6759

Add non-PRODUCTION/TESTING overflow `assert`s to various string helper-functions (issue 6759)
This commit is contained in:
Tim van der Meij 2021-06-29 21:22:34 +02:00 committed by GitHub
commit 6307349e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 52 additions and 4 deletions

View file

@ -23,6 +23,9 @@ describe("font_fpgm", function () {
defaultEncoding: [],
cMap,
toUnicode: new ToUnicodeMap([]),
xHeight: 0,
capHeight: 0,
italicAngle: 0,
});
const output = await ttx(font.data);

View file

@ -23,6 +23,9 @@ describe("font_post", function () {
differences: [],
defaultEncoding: [],
toUnicode: new ToUnicodeMap([]),
xHeight: 0,
capHeight: 0,
italicAngle: 0,
});
const output = await ttx(font.data);
@ -41,6 +44,9 @@ describe("font_post", function () {
defaultEncoding: [],
cMap,
toUnicode: new ToUnicodeMap([]),
xHeight: 0,
capHeight: 0,
italicAngle: 0,
});
const output = await ttx(font.data);

View file

@ -31,6 +31,9 @@ describe("font_post", function () {
defaultEncoding: [],
cMap,
toUnicode: new ToUnicodeMap([]),
xHeight: 0,
capHeight: 0,
italicAngle: 0,
});
const output = await ttx(font.data);
@ -45,6 +48,9 @@ describe("font_post", function () {
differences: [],
defaultEncoding: [],
toUnicode: new ToUnicodeMap([]),
xHeight: 0,
capHeight: 0,
italicAngle: 0,
});
const output = await ttx(font.data);
@ -59,6 +65,9 @@ describe("font_post", function () {
differences: [],
defaultEncoding: [],
toUnicode: new ToUnicodeMap([]),
xHeight: 0,
capHeight: 0,
italicAngle: 0,
});
const output = await ttx(font.data);