1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 09:08:07 +02:00

Merge pull request #19508 from calixteman/issue19505

[JS] Skip throwing actions
This commit is contained in:
calixteman 2025-02-17 22:57:14 +01:00 committed by GitHub
commit 203452c170
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 49 additions and 23 deletions

View file

@ -2528,4 +2528,33 @@ describe("Interaction", () => {
);
});
});
describe("Skip throwing actions (issue 19505)", () => {
let pages;
beforeAll(async () => {
pages = await loadAndWait("issue19505.pdf", "[data-annotation-id='24R']");
});
afterAll(async () => {
await closePages(pages);
});
it("must check that date entered are in the input", async () => {
await Promise.all(
pages.map(async ([browserName, page]) => {
await waitForScripting(page);
const fieldSelector = getSelector("24R");
for (const c of "Hello World") {
await page.type(fieldSelector, c);
await waitForSandboxTrip(page);
}
const value = await page.$eval(fieldSelector, el => el.value);
expect(value).withContext(`In ${browserName}`).toEqual("Hello World");
})
);
});
});
});

View file

@ -704,3 +704,4 @@
!issue19360.pdf
!bug1019475_1.pdf
!bug1019475_2.pdf
!issue19505.pdf

BIN
test/pdfs/issue19505.pdf Executable file

Binary file not shown.