From 6b0be91bf4d10be7ce2679cf440ebf220e390d0b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 May 2016 00:59:16 -0400 Subject: [PATCH] Clear lastViewedFolder pref when resetting DB during tests --- test/content/support.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/content/support.js b/test/content/support.js index ee253ecc4a..559f6f519c 100644 --- a/test/content/support.js +++ b/test/content/support.js @@ -497,6 +497,8 @@ var getTempDirectory = Zotero.Promise.coroutine(function* getTempDirectory() { * any that were set at startup */ function resetDB(options = {}) { + Zotero.Prefs.clear('lastViewedFolder') + if (options.thisArg) { options.thisArg.timeout(60000); }