mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Write boolean value when saving a form (bug 1729971)
- it aims to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1729971#c4.
This commit is contained in:
parent
8a79f13e5a
commit
474ab7c86d
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue