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:
parent
757709cf43
commit
f99038fd37
2 changed files with 10 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue