Fix segfault when hyphenating text in main process (#3388)

This commit is contained in:
Abe Jellinek 2023-09-14 02:48:50 -04:00 committed by GitHub
parent 78fe68164f
commit 8d825f641a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,8 @@
describe("Hyphenation", function () {
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
window.openDialog('chrome://zotero-unit/content/hyphenationTest.xhtml', 'test', 'chrome');
await Zotero.Promise.delay(200);
});
});