mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 07:11:00 +02:00
Fix missing page closing for two viewer integration tests
This caused the tab to remain open after the tests ran, which meant that a total of ~120 MB of memory was not being freed.
This commit is contained in:
parent
c66f9f2497
commit
600a4bb1ee
@ -1403,6 +1403,10 @@ describe("PDF viewer", () => {
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
|
||||
it("keeps the content under the pinch centre fixed on the screen", async () => {
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
@ -1610,6 +1614,10 @@ describe("PDF viewer", () => {
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await closePages(pages);
|
||||
});
|
||||
|
||||
it("Check that the top right corner of the annotation is centered vertically", async () => {
|
||||
await Promise.all(
|
||||
pages.map(async ([browserName, page]) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user