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

Address formatting changes from Prettier version 3

This commit is contained in:
Jonas Jenwald 2023-07-15 09:09:20 +02:00
parent 1a4bfd2fc3
commit f84657d837
4 changed files with 28 additions and 21 deletions

View file

@ -217,9 +217,12 @@ describe("FreeText Editor", () => {
await page.waitForTimeout(10);
}
let length = await page.evaluate(sel => {
return document.querySelectorAll(sel).length;
}, `${getEditorSelector(5)}, ${getEditorSelector(6)}`);
let length = await page.evaluate(
sel => {
return document.querySelectorAll(sel).length;
},
`${getEditorSelector(5)}, ${getEditorSelector(6)}`
);
expect(length).withContext(`In ${browserName}`).toEqual(2);
for (let i = 0; i < 2; i++) {
@ -229,9 +232,12 @@ describe("FreeText Editor", () => {
await page.waitForTimeout(10);
}
length = await page.evaluate(sel => {
return document.querySelectorAll(sel).length;
}, `${getEditorSelector(5)}, ${getEditorSelector(6)}`);
length = await page.evaluate(
sel => {
return document.querySelectorAll(sel).length;
},
`${getEditorSelector(5)}, ${getEditorSelector(6)}`
);
expect(length).withContext(`In ${browserName}`).toEqual(0);
}
});

View file

@ -2427,13 +2427,13 @@ describe("api", function () {
docBaseUrl: "http://www.example.com/test/pdfs/qwerty.pdf",
})
);
const docBaseUrlPromise = docBaseUrlLoadingTask.promise.then(function (
pdfDoc
) {
return pdfDoc.getPage(1).then(function (pdfPage) {
return pdfPage.getAnnotations();
});
});
const docBaseUrlPromise = docBaseUrlLoadingTask.promise.then(
function (pdfDoc) {
return pdfDoc.getPage(1).then(function (pdfPage) {
return pdfPage.getAnnotations();
});
}
);
const invalidDocBaseUrlLoadingTask = getDocument(
buildGetDocumentParams(filename, {