mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Enable the "gets fieldObjects" unit-test in Node.js (PR 14409 follow-up)
Apparently this unit-test works in Node.js now, hence it's *possible* that the reason it didn't work previously is that there were bugs in our old `structuredClone` polyfill.
This commit is contained in:
parent
9e4aaf18f7
commit
fb345ee184
1 changed files with 0 additions and 6 deletions
|
@ -1296,12 +1296,6 @@ describe("api", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("gets fieldObjects", async function () {
|
it("gets fieldObjects", async function () {
|
||||||
if (isNodeJS) {
|
|
||||||
pending(
|
|
||||||
"Node.js appears to ignore Object properties that are explicitly " +
|
|
||||||
"set to `undefined`, thus breaking the expectations used below."
|
|
||||||
);
|
|
||||||
}
|
|
||||||
const loadingTask = getDocument(buildGetDocumentParams("js-authors.pdf"));
|
const loadingTask = getDocument(buildGetDocumentParams("js-authors.pdf"));
|
||||||
const pdfDoc = await loadingTask.promise;
|
const pdfDoc = await loadingTask.promise;
|
||||||
const fieldObjects = await pdfDoc.getFieldObjects();
|
const fieldObjects = await pdfDoc.getFieldObjects();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue