mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Be sure that CalculationOrder is either null or a non-empty array
This commit is contained in:
parent
b194c820bf
commit
25bf504ff5
3 changed files with 13 additions and 2 deletions
|
@ -187,6 +187,14 @@ describe("document", function () {
|
|||
acroForm.set("CO", []);
|
||||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.calculationOrderIds).toEqual(null);
|
||||
|
||||
acroForm.set("CO", ["1", "2"]);
|
||||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.calculationOrderIds).toEqual(null);
|
||||
|
||||
acroForm.set("CO", ["1", Ref.get(1, 0), "2"]);
|
||||
pdfDocument = getDocument(acroForm);
|
||||
expect(pdfDocument.calculationOrderIds).toEqual(["1R"]);
|
||||
});
|
||||
|
||||
it("should get field objects array or null", async function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue