mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
- 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
14 lines
439 B
JavaScript
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);
|
|
});
|
|
});
|