Use the bundled PDF tools
This commit is contained in:
parent
e3dee4dee7
commit
0d5ea8520a
15 changed files with 42 additions and 954 deletions
|
@ -1,20 +1,5 @@
|
|||
describe("Search Preferences", function () {
|
||||
describe("PDF Indexing", function () {
|
||||
it("should install PDF tools if not installed", function* () {
|
||||
// Begin install procedure
|
||||
var win = yield loadWindow("chrome://zotero/content/preferences/preferences.xul", {
|
||||
pane: 'zotero-prefpane-search',
|
||||
action: 'pdftools-install'
|
||||
});
|
||||
// Wait for confirmation dialog
|
||||
yield waitForDialog();
|
||||
|
||||
// Wait for install to finish
|
||||
yield waitForCallback(function() {
|
||||
return Zotero.Fulltext.pdfConverterIsRegistered()
|
||||
&& Zotero.Fulltext.pdfInfoIsRegistered();
|
||||
}, 500)
|
||||
.finally(() => win.close());
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue