Fix block spacing inconsistencies in the integration test code

Most places have a newline before/after `before{Each,All}`,
`after{Each,All}` and `it` to visually separate the blocks for clarity,
but in a handful of places this wasn't done. This commit removes the
inconsistencies so that the test code is formatted consistently.
This commit is contained in:
Tim van der Meij 2025-08-17 17:10:58 +02:00
parent cf5bffef2e
commit 7f74fbf8fd
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762
2 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,7 @@ describe("Text layer", () => {
`.page[data-page-number = "1"] .endOfContent` `.page[data-page-number = "1"] .endOfContent`
); );
}); });
afterEach(async () => { afterEach(async () => {
await closePages(pages); await closePages(pages);
}); });
@ -226,6 +227,7 @@ describe("Text layer", () => {
`.page[data-page-number = "1"] .endOfContent` `.page[data-page-number = "1"] .endOfContent`
); );
}); });
afterEach(async () => { afterEach(async () => {
await closePages(pages); await closePages(pages);
}); });
@ -315,6 +317,7 @@ describe("Text layer", () => {
`.page[data-page-number = "1"] .endOfContent` `.page[data-page-number = "1"] .endOfContent`
); );
}); });
afterEach(async () => { afterEach(async () => {
await closePages(pages); await closePages(pages);
}); });
@ -456,6 +459,7 @@ describe("Text layer", () => {
{ timeout: 0 } { timeout: 0 }
); );
}); });
afterEach(async () => { afterEach(async () => {
await closeSinglePage(page); await closeSinglePage(page);
await browser.close(); await browser.close();

View File

@ -1358,12 +1358,14 @@ describe("PDF viewer", () => {
describe("Pinch-zoom", () => { describe("Pinch-zoom", () => {
let pages; let pages;
beforeEach(async () => { beforeEach(async () => {
pages = await loadAndWait( pages = await loadAndWait(
"tracemonkey.pdf", "tracemonkey.pdf",
`.page[data-page-number = "1"] .endOfContent` `.page[data-page-number = "1"] .endOfContent`
); );
}); });
it("keeps the content under the pinch centre fixed on the screen", async () => { it("keeps the content under the pinch centre fixed on the screen", async () => {
await Promise.all( await Promise.all(
pages.map(async ([browserName, page]) => { pages.map(async ([browserName, page]) => {