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

Add non-PRODUCTION/TESTING overflow asserts to various string helper-functions (issue 6759)

This commit is contained in:
Jonas Jenwald 2021-06-27 15:19:02 +02:00
parent d644b66c72
commit 273d8cb746
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);