Fix segfault when hyphenating text in main process (#3388)
This commit is contained in:
parent
78fe68164f
commit
8d825f641a
4 changed files with 31 additions and 0 deletions
8
test/tests/hyphenationTest.js
Normal file
8
test/tests/hyphenationTest.js
Normal 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);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue