Skip to content

Commit b4367f0

Browse files
committed
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.
1 parent d0c948b commit b4367f0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/integration/text_layer_spec.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ describe("Text layer", () => {
117117
`.page[data-page-number = "1"] .endOfContent`
118118
);
119119
});
120+
120121
afterEach(async () => {
121122
await closePages(pages);
122123
});
@@ -226,6 +227,7 @@ describe("Text layer", () => {
226227
`.page[data-page-number = "1"] .endOfContent`
227228
);
228229
});
230+
229231
afterEach(async () => {
230232
await closePages(pages);
231233
});
@@ -315,6 +317,7 @@ describe("Text layer", () => {
315317
`.page[data-page-number = "1"] .endOfContent`
316318
);
317319
});
320+
318321
afterEach(async () => {
319322
await closePages(pages);
320323
});
@@ -456,6 +459,7 @@ describe("Text layer", () => {
456459
{ timeout: 0 }
457460
);
458461
});
462+
459463
afterEach(async () => {
460464
await closeSinglePage(page);
461465
await browser.close();

test/integration/viewer_spec.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,12 +1358,14 @@ describe("PDF viewer", () => {
13581358

13591359
describe("Pinch-zoom", () => {
13601360
let pages;
1361+
13611362
beforeEach(async () => {
13621363
pages = await loadAndWait(
13631364
"tracemonkey.pdf",
13641365
`.page[data-page-number = "1"] .endOfContent`
13651366
);
13661367
});
1368+
13671369
it("keeps the content under the pinch centre fixed on the screen", async () => {
13681370
await Promise.all(
13691371
pages.map(async ([browserName, page]) => {

0 commit comments

Comments
 (0)