Fix recognizer dialog with multiple tests

Do cleanup on 'unload' rather than 'close' (which is limited to a click
on the close button and doesn't get called for win.close()) and clear
the queue after each test.
This commit is contained in:
Dan Stillman 2018-02-28 17:32:23 -05:00
parent 757709cf43
commit f99038fd37
2 changed files with 10 additions and 8 deletions

View file

@ -19,6 +19,7 @@ describe("PDF Recognition", function() {
for(let win of getWindows("chrome://zotero/content/recognizePDFDialog.xul")) {
win.close();
}
Zotero.RecognizePDF.cancel();
});
after(function() {