Fix stuck checkUser prompt in sync prefs tests on Ubuntu

For some reason the confirmEx prompt behaves differently (as a modal
window?) on Ubuntu if it's the only window open, preventing the
setTimeout() callback within support.js::waitForWindow() from being run.
(Passing -c to the test runner fixed it.) This removes a win.close() in
the middle of the file, which was probably a mistake anyway, so that the
pref window stays open until the end of the file.
This commit is contained in:
Dan Stillman 2016-01-25 18:22:25 -05:00
parent 31d2f6aecb
commit aff8e35a0e

View file

@ -63,7 +63,6 @@ describe("Sync Preferences", function () {
Zotero.alert.restore();
getAPIKeyFromCredentialsStub.restore();
deleteAPIKey.restore();
win.close();
});
it("should set API key and display full controls with correct credentials", function* () {