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:
parent
cf5bffef2e
commit
7f74fbf8fd
@ -117,6 +117,7 @@ describe("Text layer", () => {
|
||||
`.page[data-page-number = "1"] .endOfContent`
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
@ -226,6 +227,7 @@ describe("Text layer", () => {
|
||||
`.page[data-page-number = "1"] .endOfContent`
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
@ -315,6 +317,7 @@ describe("Text layer", () => {
|
||||
`.page[data-page-number = "1"] .endOfContent`
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
@ -456,6 +459,7 @@ describe("Text layer", () => {
|
||||
{ timeout: 0 }
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await closeSinglePage(page);
|
||||
await browser.close();
|
||||
|
||||
@ -1358,12 +1358,14 @@ describe("PDF viewer", () => {
|
||||
|
||||
describe("Pinch-zoom", () => {
|
||||
let pages;
|
||||
|
||||
beforeEach(async () => {
|
||||
pages = await loadAndWait(
|
||||
"tracemonkey.pdf",
|
||||
`.page[data-page-number = "1"] .endOfContent`
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps the content under the pinch centre fixed on the screen", async () => {
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user