zotero/test
Dan Stillman a43d6a5d37 Fix erroneous data dir reuse in new profile on Windows
In a newly created profile, we check whether another profile is using
the default data directory, and if so, we create a new data directory
named after the profile (e.g., "Zotero Work"). But on Windows, paths in
prefs.js are stored with escaped backslaches (C:\\Users\\foo\\Zotero),
so searching for the JS string with literal single backslashes
(C:\Users\foo\Zotero) always failed, we would conclude that the default
dir was unused, and we would reuse the existing database.

To fix, escape backslashes in dataDir before the substring check.
Mac/Linux paths have no backslashes so this is a no-op there.
2026-04-27 16:04:52 -04:00
..
components fx140: Asyncify/ESMify tests 2025-07-30 22:30:53 -04:00
content Set Recently Read threshold relative to most recent item (#5878) 2026-04-07 14:10:18 -04:00
resource Remove Chai as Promised 2025-07-30 22:31:08 -04:00
tests Fix erroneous data dir reuse in new profile on Windows 2026-04-27 16:04:52 -04:00
chrome.manifest fx115: Restore test runner 2024-03-30 00:58:53 -04:00
runtests.sh Add support for test retries and enable three retries on CI 2026-03-11 14:35:39 -04:00