mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #17776 from calixteman/bug1883609
[Annotations] Widget annotations must be in front of the other ones (bug 1883609)
This commit is contained in:
commit
9ee4c6528d
5 changed files with 44 additions and 2 deletions
|
@ -58,6 +58,35 @@ describe("Annotation highlight", () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Check that widget annotations are in front of highlight ones", () => {
|
||||
let pages;
|
||||
|
||||
beforeAll(async () => {
|
||||
pages = await loadAndWait("bug1883609.pdf", "[data-annotation-id='23R']");
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
|
||||
it("must click on widget annotations", async () => {
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
for (const i of [23, 22, 14]) {
|
||||
await page.click(`[data-annotation-id='${i}R']`);
|
||||
await page.waitForFunction(
|
||||
id =>
|
||||
document.activeElement ===
|
||||
document.querySelector(`#pdfjs_internal_id_${id}R`),
|
||||
{},
|
||||
i
|
||||
);
|
||||
}
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("Checkbox annotation", () => {
|
||||
|
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -633,3 +633,4 @@
|
|||
!issue17671.pdf
|
||||
!bug1868759.pdf
|
||||
!issue17730.pdf
|
||||
!bug1883609.pdf
|
||||
|
|
BIN
test/pdfs/bug1883609.pdf
Executable file
BIN
test/pdfs/bug1883609.pdf
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue