Wire up new feed processor to Zotero's feed reader
This connects the new feed processor to Zotero's existing feed reader. The new feed processor assumes a content window environment, so a sandbox in a parent window is used to load it.
This commit is contained in:
parent
2bd4904ead
commit
eaa01901ef
3 changed files with 72 additions and 21 deletions
|
@ -311,8 +311,11 @@ describe("Zotero.Feed", function() {
|
|||
var feed, scheduleNextFeedCheck;
|
||||
var feedUrl = getTestDataUrl("feed.rss");
|
||||
var modifiedFeedUrl = getTestDataUrl("feedModified.rss");
|
||||
var win;
|
||||
|
||||
before(function() {
|
||||
before(async function() {
|
||||
// Browser window is needed as parent window to load the feed reader scripts.
|
||||
win = await loadBrowserWindow();
|
||||
scheduleNextFeedCheck = sinon.stub(Zotero.Feeds, 'scheduleNextFeedCheck').resolves();
|
||||
});
|
||||
|
||||
|
@ -328,6 +331,9 @@ describe("Zotero.Feed", function() {
|
|||
});
|
||||
|
||||
after(function() {
|
||||
if (win) {
|
||||
win.close();
|
||||
}
|
||||
scheduleNextFeedCheck.restore();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue