1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Remove the requestAnimationFrame work-around in L10n.prototype.destroy (PR 18313 follow-up)

With `@fluent/dom 0.10.0` just published this work-around is no longer necessary.
This commit is contained in:
Jonas Jenwald 2024-06-25 17:23:19 +02:00
parent 11cb3a8e11
commit f676ce5760
4 changed files with 8 additions and 18 deletions

View file

@ -559,12 +559,8 @@ describe("Stamp Editor", () => {
});
afterAll(async () => {
// Close the pages in reverse order because the second document will have
// focus at the end of the test and the `testingClose` method requires
// (via `requestAnimationFrame` usage in the `this.l10n.destroy()` call)
// that the page it's called on has focus.
await closePages(pages2);
await closePages(pages1);
await closePages(pages2);
});
it("must check that the alt-text button is here when pasting in the second tab", async () => {