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

@ -755,13 +755,13 @@ const getGlyphMapForStandardFonts = getLookupTableFactory(function (t) {
// The glyph map for ArialBlack differs slightly from the glyph map used for // The glyph map for ArialBlack differs slightly from the glyph map used for
// other well-known standard fonts. Hence we use this (incomplete) CID to GID // other well-known standard fonts. Hence we use this (incomplete) CID to GID
// mapping to adjust the glyph map for non-embedded ArialBlack fonts. // mapping to adjust the glyph map for non-embedded ArialBlack fonts.
const getSupplementalGlyphMapForArialBlack = getLookupTableFactory(function ( const getSupplementalGlyphMapForArialBlack = getLookupTableFactory(
t function (t) {
) { t[227] = 322;
t[227] = 322; t[264] = 261;
t[264] = 261; t[291] = 346;
t[291] = 346; }
}); );
// The glyph map for Calibri (a Windows font) differs from the glyph map used // The glyph map for Calibri (a Windows font) differs from the glyph map used
// in the standard fonts. Hence we use this (incomplete) CID to GID mapping to // in the standard fonts. Hence we use this (incomplete) CID to GID mapping to

View File

@ -217,9 +217,12 @@ describe("FreeText Editor", () => {
await page.waitForTimeout(10); await page.waitForTimeout(10);
} }
let length = await page.evaluate(sel => { let length = await page.evaluate(
return document.querySelectorAll(sel).length; sel => {
}, `${getEditorSelector(5)}, ${getEditorSelector(6)}`); return document.querySelectorAll(sel).length;
},
`${getEditorSelector(5)}, ${getEditorSelector(6)}`
);
expect(length).withContext(`In ${browserName}`).toEqual(2); expect(length).withContext(`In ${browserName}`).toEqual(2);
for (let i = 0; i < 2; i++) { for (let i = 0; i < 2; i++) {
@ -229,9 +232,12 @@ describe("FreeText Editor", () => {
await page.waitForTimeout(10); await page.waitForTimeout(10);
} }
length = await page.evaluate(sel => { length = await page.evaluate(
return document.querySelectorAll(sel).length; sel => {
}, `${getEditorSelector(5)}, ${getEditorSelector(6)}`); return document.querySelectorAll(sel).length;
},
`${getEditorSelector(5)}, ${getEditorSelector(6)}`
);
expect(length).withContext(`In ${browserName}`).toEqual(0); 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", docBaseUrl: "http://www.example.com/test/pdfs/qwerty.pdf",
}) })
); );
const docBaseUrlPromise = docBaseUrlLoadingTask.promise.then(function ( const docBaseUrlPromise = docBaseUrlLoadingTask.promise.then(
pdfDoc function (pdfDoc) {
) { return pdfDoc.getPage(1).then(function (pdfPage) {
return pdfDoc.getPage(1).then(function (pdfPage) { return pdfPage.getAnnotations();
return pdfPage.getAnnotations(); });
}); }
}); );
const invalidDocBaseUrlLoadingTask = getDocument( const invalidDocBaseUrlLoadingTask = getDocument(
buildGetDocumentParams(filename, { buildGetDocumentParams(filename, {

View File

@ -586,7 +586,8 @@ body {
.doorHanger, .doorHanger,
.doorHangerRight { .doorHangerRight {
border-radius: 2px; border-radius: 2px;
box-shadow: 0 1px 5px var(--doorhanger-border-color), box-shadow:
0 1px 5px var(--doorhanger-border-color),
0 0 0 1px var(--doorhanger-border-color); 0 0 0 1px var(--doorhanger-border-color);
border: var(--doorhanger-border-color-whcm); border: var(--doorhanger-border-color-whcm);
} }