zotero/test/tests
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
..
data Merge branch '4.0' 2015-07-18 07:09:53 -04:00
attachmentsTest.js Asyncify Zotero.Attachments.getNumFiles() and add hasMultipleFiles() 2015-09-22 04:11:31 -04:00
cachedTypesTest.js Add toCanonical and toLabel for Zotero.CharacterSets 2015-06-11 17:17:28 -05:00
collectionsTest.js Add Feed and FeedItem 2015-09-21 17:08:21 -05:00
collectionTest.js Update hasChildCollections() when child moved to another collection 2015-08-08 16:45:51 -04:00
collectionTreeViewTest.js Fix various collection-dragging UI bugs 2015-08-08 17:26:42 -04:00
dataObjectsTest.js Clean up DataObject erasing, and fix search unloading 2015-06-16 19:51:21 -04:00
dataObjectTest.js Fix Zotero.DataObject.key test 2015-09-21 17:08:21 -05:00
dataObjectUtilitiesTest.js Support for automatically merging collections and searches 2015-07-20 02:12:14 -04:00
dateTest.js Add Zotero.Date.isISODate() and Zotero.Date.isoToSQL() 2015-05-04 02:41:14 -04:00
dbTest.js Remove stray this.timeout() call 2015-05-29 01:38:47 -04:00
feedItemsTest.js Add Feed and FeedItem 2015-09-21 17:08:21 -05:00
feedItemTest.js Adjust error and feed tests for access error on read-only libraries 2015-09-22 03:52:31 -04:00
feedsTest.js Add Feed and FeedItem 2015-09-21 17:08:21 -05:00
feedTest.js Adjust error and feed tests for access error on read-only libraries 2015-09-22 03:52:31 -04:00
fileInterfaceTest.js Extend timeout for import test 2015-06-12 17:08:30 -04:00
fileTest.js Update character set handling 2015-06-12 02:46:02 -04:00
fulltextTest.js Fix fullText tests on Windows 2015-09-21 17:08:22 -05:00
groupsTest.js Move editable and filesEditable props to libraries table [DB reupgrade] 2015-06-07 15:50:07 -04:00
groupTest.js Add Feed and FeedItem 2015-09-21 17:08:21 -05:00
itemFieldsTest.js Fix Zotero.ItemFields.getBaseIDFromTypeAndField() 2015-05-27 05:01:48 -04:00
itemPaneTest.js Fix attachment renaming 2015-08-07 15:36:46 -04:00
itemsTest.js Add Feed and FeedItem 2015-09-21 17:08:21 -05:00
itemTest.js Migrate relative/persistent descriptors to string paths [DB reupgrade] 2015-09-29 04:42:08 -04:00
itemTreeViewTest.js Don't change selection unnecessarily when creating trashed item 2015-06-23 16:56:10 -04:00
librariesTest.js Add Feed and FeedItem 2015-09-21 17:08:21 -05:00
libraryTest.js Add Feed and FeedItem 2015-09-21 17:08:21 -05:00
lookupTest.js Rename remaining files to *Test.js 2015-05-19 14:46:17 -04:00
preferences_searchTest.js Add waitForDialog(onOpen, button) support function 2015-06-04 20:31:48 -04:00
quickCopyTest.js Ignore trailing period in domain for Quick Copy 2015-07-03 23:46:39 -04:00
recognizePDFTest.js Return a Zotero.Item from all Zotero.Attachments methods 2015-05-29 05:33:54 -04:00
relatedboxTest.js Relations overhaul (requires new DB upgrade from 4.0) 2015-06-01 20:28:30 -04:00
relationsTest.js Update Zotero.Relations.updateUser() for new relations schema 2015-06-04 20:38:49 -04:00
searchTest.js Add basic tests for full-text search 2015-05-31 14:39:37 -07:00
supportTest.js Don't create Quick Start Guide item for new libraries 2015-07-20 02:12:13 -04:00
syncEngineTest.js Fix fullText tests on Windows 2015-09-21 17:08:22 -05:00
syncLocalTest.js Make CR wizard button assertions Mac-only for now 2015-08-06 05:45:36 -04:00
syncRunnerTest.js Open a window for syncRunner tests 2015-09-21 17:08:23 -05:00
tagsboxTest.js Tags overhaul [DB reupgrade] 2015-06-23 05:21:58 -04:00
tagSelectorTest.js Tags overhaul [DB reupgrade] 2015-06-23 05:21:58 -04:00
tagsTest.js Tags overhaul [DB reupgrade] 2015-06-23 05:21:58 -04:00
translateTest.js Fix Translate tests on Windows 2015-09-21 17:08:22 -05:00
utilitiesTest.js Merge branch '4.0' into sjk/659 2015-06-01 00:03:20 -04:00
zoteroPaneTest.js Fix selection of new items 2015-05-25 21:48:47 -04:00