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 #13998 from calixteman/bug1729971

Write boolean value when saving a form (bug 1729971)
This commit is contained in:
Jonas Jenwald 2021-09-12 15:38:10 +02:00 committed by GitHub
commit 761519ef3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -114,6 +114,8 @@ describe("Writer", function () {
gdict.set("I", stream);
dict.set("G", gdict);
dict.set("J", true);
dict.set("K", false);
const buffer = [];
writeDict(dict, buffer, null);
@ -123,7 +125,7 @@ describe("Writer", function () {
"/E (\\(hello\\\\world\\)) /F [1.23 4.5 6] " +
"/G << /H 123 /I << /Length 8>> stream\n" +
"a stream\n" +
"endstream\n>>>>";
"endstream\n>> /J true /K false>>";
expect(buffer.join("")).toEqual(expected);
});