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:
J. Ryan Stinnett 2021-05-22 18:44:42 +01:00
parent 2bd4904ead
commit eaa01901ef
3 changed files with 72 additions and 21 deletions

View file

@ -35,8 +35,18 @@ describe("Zotero.FeedReader", function () {
var atomFeedURL = getTestDataUrl("feed.atom");
var mediaFeedURL = getTestDataUrl("feedMedia.xml");
after(function* () {
yield clearFeeds();
var win;
before(async function() {
// Browser window is needed as parent window to load the feed reader scripts.
win = await loadBrowserWindow();
});
after(async function() {
if (win) {
win.close();
}
await clearFeeds();
});
describe('FeedReader()', function () {