Refactor ProgressWindow translation messages show for feed items

This commit is contained in:
Adomas Venčkauskas 2016-02-09 20:48:27 +00:00 committed by Dan Stillman
parent e206b0af5e
commit 9e88969f3d
5 changed files with 148 additions and 91 deletions

View file

@ -113,7 +113,8 @@ describe("Zotero.Feeds", function () {
yield Zotero.Feeds.scheduleNextFeedCheck();
assert.equal(Zotero.Promise.delay.args[0][0], 1000*60*60);
// Allow a propagation delay of 5000ms
assert.isTrue(Zotero.Promise.delay.args[0][0] - 1000*60*60 <= 5000);
Zotero.Feeds.scheduleNextFeedCheck.restore();
Zotero.Promise.delay.restore();