mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add non-PRODUCTION/TESTING overflow assert
s to various string helper-functions (issue 6759)
This commit is contained in:
parent
d644b66c72
commit
273d8cb746
6 changed files with 52 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue