Skip to content

Run the integration tests in a random order #19809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions test/integration/accessibility_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ describe("accessibility", () => {
describe("structure tree", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("structure_simple.pdf", ".structTree");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -107,14 +107,14 @@ describe("accessibility", () => {
describe("Annotation", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"tracemonkey_a11y.pdf",
".textLayer .endOfContent"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -147,11 +147,11 @@ describe("accessibility", () => {
describe("Annotations order", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("fields_order.pdf", ".annotationLayer");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -180,11 +180,11 @@ describe("accessibility", () => {
describe("Stamp annotation accessibility", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("tagged_stamp.pdf", ".annotationLayer");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -245,11 +245,11 @@ describe("accessibility", () => {
describe("Figure in the content stream", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("bug1708040.pdf", ".textLayer");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down
60 changes: 30 additions & 30 deletions test/integration/annotation_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ describe("Annotation highlight", () => {
describe("annotation-highlight.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"annotation-highlight.pdf",
"[data-annotation-id='19R']"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -62,11 +62,11 @@ describe("Annotation highlight", () => {
describe("Check that widget annotations are in front of highlight ones", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("bug1883609.pdf", "[data-annotation-id='23R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -87,11 +87,11 @@ describe("Checkbox annotation", () => {
describe("issue12706.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("issue12706.pdf", "[data-annotation-id='63R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -123,11 +123,11 @@ describe("Checkbox annotation", () => {
describe("issue15597.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("issue15597.pdf", "[data-annotation-id='7R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -148,11 +148,11 @@ describe("Checkbox annotation", () => {
describe("bug1847733.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("bug1847733.pdf", "[data-annotation-id='18R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -178,11 +178,11 @@ describe("Text widget", () => {
describe("issue13271.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("issue13271.pdf", "[data-annotation-id='24R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -207,11 +207,11 @@ describe("Text widget", () => {
describe("issue16473.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("issue16473.pdf", "[data-annotation-id='22R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -236,11 +236,11 @@ describe("Annotation and storage", () => {
describe("issue14023.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("issue14023.pdf", "[data-annotation-id='64R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -337,11 +337,11 @@ describe("ResetForm action", () => {
describe("resetform.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("resetform.pdf", "[data-annotation-id='63R']");
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -462,14 +462,14 @@ describe("ResetForm action", () => {
describe("issue14438.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"issue14438.pdf",
"[data-annotation-id='10R']"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -490,14 +490,14 @@ describe("ResetForm action", () => {
describe("annotation-caret-ink.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"annotation-caret-ink.pdf",
"[data-annotation-id='25R']"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -525,14 +525,14 @@ describe("ResetForm action", () => {
describe("bug1844583.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"bug1844583.pdf",
"[data-annotation-id='8R']"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -553,14 +553,14 @@ describe("ResetForm action", () => {
describe("tagged_stamp.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"tagged_stamp.pdf",
"[data-annotation-id='20R']"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -622,14 +622,14 @@ describe("ResetForm action", () => {
describe("issue14438.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"highlights.pdf",
"[data-annotation-id='693R']"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -652,14 +652,14 @@ describe("ResetForm action", () => {
describe("issue14438.pdf", () => {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"rotated_ink.pdf",
"[data-annotation-id='18R']"
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down
20 changes: 10 additions & 10 deletions test/integration/autolinker_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe("autolinker", function () {
describe("bug1019475_2.pdf", function () {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"bug1019475_2.pdf",
".annotationLayer",
Expand All @@ -75,7 +75,7 @@ describe("autolinker", function () {
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -99,7 +99,7 @@ describe("autolinker", function () {
describe("bug1019475_1.pdf", function () {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"bug1019475_1.pdf",
".annotationLayer",
Expand All @@ -111,7 +111,7 @@ describe("autolinker", function () {
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -138,14 +138,14 @@ describe("autolinker", function () {
describe("pr19449.pdf", function () {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait("pr19449.pdf", ".annotationLayer", null, null, {
docBaseUrl: "http://example.com",
enableAutoLinking: true,
});
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand All @@ -172,7 +172,7 @@ describe("autolinker", function () {
describe("PR 19470", function () {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"bug1019475_2.pdf",
".annotationLayer",
Expand All @@ -184,7 +184,7 @@ describe("autolinker", function () {
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down Expand Up @@ -218,7 +218,7 @@ describe("autolinker", function () {
describe("when highlighting search results", function () {
let pages;

beforeAll(async () => {
beforeEach(async () => {
pages = await loadAndWait(
"issue3115r.pdf",
".annotationLayer",
Expand All @@ -228,7 +228,7 @@ describe("autolinker", function () {
);
});

afterAll(async () => {
afterEach(async () => {
await closePages(pages);
});

Expand Down
Loading