zotero/test/tests/hyphenationTest.js
abaevbog 873beebc0f
close more leftover windows in tests (#5460)
- close hyphenationTest window.
- properly close zoteroPane window in preferences_syncTest.
after() hook inside of the test would not close the window until the
very end of the entire test run. Without this, during
subsequent tests that open their own zoteroPane window, there
are two instances of zoteroPane open at the same time.
- close open tabs in readerTest cleanup, since subsequent
tests expect library tab to be selected.

Followup to https://github.com/zotero/zotero/pull/5444#issuecomment-3141879892
2025-08-02 01:40:21 -04:00

14 lines
439 B
JavaScript

describe("Hyphenation", function () {
let win;
after(function() {
win.close();
});
it("should not cause a segfault", async function () {
// Files in test/tests/data/ (resources://) can't be parsed as XUL/XHTML, so the data for this test is in
// test/content/ (chrome://), which can
win = window.openDialog('chrome://zotero-unit/content/hyphenationTest.xhtml', 'test', 'chrome');
await Zotero.Promise.delay(200);
});
});