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

JS -- fix printd issue with negative number

This commit is contained in:
Calixte Denizet 2020-12-10 18:43:04 +01:00
parent b194c820bf
commit c7b09b8efc
2 changed files with 7 additions and 2 deletions

View file

@ -209,6 +209,11 @@ describe("Scripting", function () {
expect(value).toEqual("Decimal number: + 1.235");
}
),
myeval(`util.printf("Decimal number: %,0.2f", -12.34567)`).then(
value => {
expect(value).toEqual("Decimal number: -12.35");
}
),
]).then(() => done());
});