mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Disable events on canvas in the annotation layer
This commit is contained in:
parent
64520a0c63
commit
dd21139405
2 changed files with 29 additions and 0 deletions
|
@ -403,4 +403,32 @@ describe("ResetForm action", () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("FreeText widget", () => {
|
||||
describe("issue14438.pdf", () => {
|
||||
let pages;
|
||||
|
||||
beforeAll(async () => {
|
||||
pages = await loadAndWait(
|
||||
"issue14438.pdf",
|
||||
"[data-annotation-id='10R']"
|
||||
);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
|
||||
it("must check that the annotation has a popup", async () => {
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
await page.click("[data-annotation-id='10R']");
|
||||
await page.waitForFunction(
|
||||
`document.querySelector("[data-annotation-id='10R'] .popupWrapper").hidden !== undefined`
|
||||
);
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue