Adds a progress bar for non quick-format integration actions

The progress percentage is based on the most recent transaction
(or undeterminate if this is the first session transaction)

Fix undefined function call error
This commit is contained in:
Adomas Venčkauskas 2018-03-30 15:31:53 +03:00 committed by Dan Stillman
parent 5e5b567782
commit 593153eebe
8 changed files with 339 additions and 29 deletions

View file

@ -305,9 +305,12 @@ describe("Zotero.Integration", function () {
});
addEditCitationSpy = sinon.spy(Zotero.Integration.Interface.prototype, 'addEditCitation');
sinon.stub(Zotero.Integration.Progress.prototype, 'show');
});
after(function() {
Zotero.Integration.Progress.prototype.show.restore();
Zotero.Integration.getApplication.restore();
displayDialogStub.restore();
addEditCitationSpy.restore();