2015-06-01 03:07:24 +00:00
|
|
|
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
|
2015-06-04 22:52:47 +00:00
|
|
|
yield waitForDialog();
|
2015-06-01 03:07:24 +00:00
|
|
|
|
|
|
|
// Wait for install to finish
|
|
|
|
yield waitForCallback(function() {
|
|
|
|
return Zotero.Fulltext.pdfConverterIsRegistered()
|
|
|
|
&& Zotero.Fulltext.pdfInfoIsRegistered();
|
|
|
|
}, 500)
|
|
|
|
.finally(() => win.close());
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|