zotero/test
Dan Stillman 9e356a7e63 Migrate relative/persistent descriptors to string paths [DB reupgrade]
Absolute paths have been stored as strings on all platforms for a while,
but old Mac persistent descriptors (Base64-encoded opaque alias records)
could still exist in the DB. Additionally, relative paths for stored
files were stored as Mozilla-specific opaque strings rather than UTF-8
strings.

This adds a schema step to convert those to strings paths in the DB.
Since Mac persistent descriptors aren't converted if the file isn't
found, we still handle and (convert) old-style persistent descriptors if
necessary when reading paths from the DB.

This also moves path string handling -- converting a path to a prefixed
string for stored or base-dir-relative files -- to the
Zotero.Item#attachmentPath setter instead of save() so that reading it
back immediately returns the correct value. One consequence is that the
attachment link mode must now be set before setting the path.

Zotero.Item#getFile() is now deprecated in favor of getFilePath() and
getFilePathAsync() (which checks file existence).

Zotero.File.directoryContains() now takes string paths instead of files.
2015-09-29 04:42:08 -04:00
..
components Merge branch '4.0' into sjk/659 2015-06-01 00:03:20 -04:00
content Fix fullText tests on Windows 2015-09-21 17:08:22 -05:00
resource Add Chai-as-Promised 2015-09-18 03:34:03 -05:00
tests Migrate relative/persistent descriptors to string paths [DB reupgrade] 2015-09-29 04:42:08 -04:00
chrome.manifest Unit testing infrastructure 2015-03-07 16:34:55 -05:00
install.rdf Unit testing infrastructure 2015-03-07 16:34:55 -05:00
runtests.sh Disable automatic backups during test runs 2015-06-11 16:06:32 -04:00