Reset Zotero prefs after each suite and when resetting DB

But keep prefs set in runtests.sh
This commit is contained in:
Dan Stillman 2016-11-29 03:27:44 -05:00
parent 30d0858ebf
commit 5bceebf56c
2 changed files with 33 additions and 1 deletions

View file

@ -511,7 +511,7 @@ var removeDir = Zotero.Promise.coroutine(function* (dir) {
* any that were set at startup
*/
function resetDB(options = {}) {
Zotero.Prefs.clear('lastViewedFolder')
resetPrefs();
if (options.thisArg) {
options.thisArg.timeout(60000);