zotero/test/tests
Dan Stillman 79700969e1 Data directory migration
This adds a new button to the Advanced prefs to migrate the data directory to
$HOME/Zotero. The button only appears if the data directory is set to the
default location within a profile directory (including the other program from
the one running, even though that's technically stored as a custom data
directory).

On Mac/Linux, directories within the data directory are moved with /bin/mv.  On
Windows, or if that fails, they're copied recursively using OS.File.move()
(which annoyingly doesn't reliably support directory moving). The former should
be instantaneous on most systems (unless the data directory or 'storage' were
on a different filesystem from $HOME).

If the database fails to transfer, migration fails and the data directory
setting remains on the old directory. If the database transfers but other files
fail, the data directory setting is updated. In both cases, the user is
encouraged to migrate remaining files manually with a button that reveals the
directories and quits the program.

This isn't yet tested on Linux or Windows, and migration isn't yet suggested
automatically.

Adds Zotero.File.reveal(), Zotero.File.directoryIsEmpty(), and
Zotero.File.moveDirectory().
2016-11-13 04:55:51 -05:00
..
data Fix error handling during local file import translation 2016-08-22 21:41:10 -04:00
advancedSearchTest.js Reset Collection search condition menu on library change 2016-10-11 23:55:17 -04:00
attachmentsTest.js Update test for fcb6e0c06 2016-06-02 16:37:26 -04:00
bibliographyTest.js Add "Manage Styles…" link to Create Bib and Doc Prefs windows 2016-09-06 19:15:01 -04:00
browserTest.js .collectionTreeViewID -> .treeViewID, and add it to Zotero.Item too 2016-05-09 12:34:03 -04:00
cachedTypesTest.js Add toCanonical and toLabel for Zotero.CharacterSets 2015-06-11 17:17:28 -05:00
collectionsTest.js Show saved searches under "Collection" search condition 2016-10-06 01:17:06 -04:00
collectionTest.js Fix sync error after changing child item to top-level 2016-05-15 03:34:06 -04:00
collectionTreeViewTest.js Fix subcollections being shown at top level of groups 2016-07-18 17:51:59 -04:00
concurrentCallerTest.js Maybe reduce spurious errors in ConcurrentCaller test 2016-07-19 18:53:48 -04:00
creatorsTest.js Deasyncification 🔙 😢 2016-03-07 17:03:58 -05:00
dataObjectsTest.js Don't throw in Zotero.DataObjects::get() for nonexistent objects 2016-05-05 06:36:24 -04:00
dataObjectTest.js Add .library to Zotero.DataObject 2016-04-10 19:46:10 -04:00
dataObjectUtilitiesTest.js Fix test from d8025be67 2016-05-17 02:44:00 -04:00
dateTest.js Changes date parsing and handling for feeds. Closes #1024, #1025 2016-06-14 13:22:04 +03:00
dbTest.js Throw an error from queryAsync() if onRow throws an error 2016-03-28 17:47:25 -04:00
duplicatesTest.js Fix instances of browser windows being left open after tests 2016-06-11 05:10:06 -04:00
feedItemsTest.js Close #934. Remove feed item read state syncing 2016-03-31 12:37:01 +03:00
feedItemTest.js Fix test failures on Linux due to slow translator initialization 2016-08-25 12:38:52 -04:00
feedReaderTest.js Various feeds changes 2016-03-22 06:56:36 -04:00
feedsTest.js Fix test failures introduced after #1044 2016-06-22 05:47:24 -04:00
feedTest.js Closes #1097. Fixes the feed settings being reuploaded after every refresh (#1098) 2016-09-22 04:05:30 -04:00
fileInterfaceTest.js Generate citation cluster via Create Bibliography dialog 2016-08-26 02:42:56 -04:00
fileTest.js Use OS.File for file reads in Zotero.File.get(Binary)ContentsAsync() 2016-09-24 06:42:30 -04:00
fulltextTest.js Use OS.File for file reads in Zotero.File.get(Binary)ContentsAsync() 2016-09-24 06:42:30 -04:00
groupsTest.js Update toolbar icons on group editability change 2016-03-25 16:49:26 -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 Save open field when selecting from an item pane context menu 2016-06-29 05:35:51 -04:00
itemsTest.js Save master item when merging 2016-04-29 20:29:44 -04:00
itemTest.js Fix relinking of imported attachment with external file 2016-10-22 15:11:12 -04:00
itemTreeViewTest.js Fix #1057, Item order is lost in saved search after item edit 2016-07-06 02:09:14 -04:00
librariesTest.js Make Zotero.Libraries.getAll() return sorted Zotero.Library instances 2015-11-04 14:04:21 -05:00
libraryTest.js Load synced settings (incl. tag colors) at startup 2016-03-15 01:18:55 -04:00
libraryTreeViewTest.js Fix potential error in libraryTreeView::#_removeRow() test 2016-07-19 20:31:52 -04:00
lookupTest.js Fix saving to collection from fallback search translators 2016-06-11 14:54:06 -04:00
noteeditorTest.js Maybe fix spurious error in noteeditor tests 2016-08-15 02:35:39 -04:00
notifierTest.js Add Zotero.Notifier.Queue to keep event groups separate, and use for sync 2016-04-22 22:48:58 -04:00
openurlTest.js Use best first creator for OpenURL author, not just first position 2016-07-11 06:30:55 -04:00
preferences_advancedTest.js Fix #959, 5.0: Submit to Zotero Server is not working 2016-04-24 04:04:40 -04:00
preferences_searchTest.js Add waitForDialog(onOpen, button) support function 2015-06-04 20:31:48 -04:00
preferences_syncTest.js Sync pane caption: "Zotero Data Sync" -> "Data Syncing" 2016-09-24 02:29:20 -04:00
quickCopyTest.js Cancel delayed quickCopy initialization when resetting DB during tests 2016-06-23 05:38:15 -04:00
recognizePDFTest.js Set Zotero.automatedTest flag instead of .noUserInput on Travis 2016-06-24 18:28:32 -04:00
relatedboxTest.js Deasyncification 🔙 😢 2016-03-07 17:03:58 -05:00
relationsTest.js Load reverse relations mappings at startup 2016-03-18 04:31:37 -04:00
schemaTest.js Overhaul object downloading/processing during data syncs 2016-03-23 04:29:04 -04:00
searchTest.js Show saved searches under "Collection" search condition 2016-10-06 01:17:06 -04:00
server_connectorTest.js Fix getTranslatorCode bugs 2016-09-20 15:55:58 +03:00
storageLocalTest.js Fix showing of WebDAV settings in sync prefs 2016-06-26 05:29:51 -04:00
storageRequestTest.js ZFS file sync overhaul for API syncing 2015-10-29 04:38:27 -04:00
supportTest.js Deasyncify Zotero.Tags.getID()/getAsync(), and add Zotero.Tags.create() 2016-04-21 11:07:16 -04:00
syncAPIClientTest.js Overhaul object downloading/processing during data syncs 2016-03-23 04:29:04 -04:00
syncedSettingsTest.js Fixes feed sync bugs after conflicts. (#1074) 2016-08-16 03:03:42 -04:00
syncEngineTest.js Fix errors uploading remotely missing objects with local version numbers 2016-08-20 14:56:31 -04:00
syncEventListenersTest.js Don't auto-sync skipped libraries on change 2016-07-12 00:41:08 -04:00
syncFullTextEngineTest.js Skip full-text content download if main library version hasn't changed 2016-05-03 01:17:53 -04:00
syncLocalTest.js Follow-ups to getAPIKey() changes in 008321bb89 2016-09-05 04:00:55 -04:00
syncRunnerTest.js Don't show missing-group warning for skipped groups 2016-07-20 15:36:31 -04:00
tagsboxTest.js Deasyncify Zotero.Tags.getID()/getAsync(), and add Zotero.Tags.create() 2016-04-21 11:07:16 -04:00
tagSelectorTest.js Deasyncify Zotero.Tags.getID()/getAsync(), and add Zotero.Tags.create() 2016-04-21 11:07:16 -04:00
tagsTest.js Deasyncify Zotero.Tags.getID()/getAsync(), and add Zotero.Tags.create() 2016-04-21 11:07:16 -04:00
translateTest.js Fix export failure on missing file attachments 2016-10-25 02:36:13 -04:00
translatorsTest.js Implements #1021 on Z4fx extension 2016-09-27 17:43:56 +03:00
utilities_internalTest.js Add test for Zotero.Utilities.Internal.md5() 2016-09-24 06:54:30 -04:00
utilitiesTest.js Remove test for Extra field parsing after 30f7ef093 2016-09-28 11:45:18 -04:00
webdavTest.js Deasyncification 🔙 😢 2016-03-07 17:03:58 -05:00
zfsTest.js Always include 'contentType'/'charset'/'filename' in attachment JSON 2016-05-21 16:33:35 -04:00
zoteroPaneTest.js Fix editing of saved search in a group 2016-10-20 22:55:42 -04:00
zoteroTest.js Data directory migration 2016-11-13 04:55:51 -05:00