zotero/test/tests
Dan Stillman 9ba3745b94 Don't clear md5/mtime in item JSON if skipped in patch mode
The client skips synced storage properties (md5, mtime) when uploading items to
ZFS-enabled libraries, but since the API returns JSON with those values
included after writes, they do get saved to the sync cache. If the local
attachment is then modified and the client generates a diff from the cached
version with those properties skipped, they'll be included in the patch JSON as
empty strings in order to clear them. This changes Zotero.Item::toJSON() to
skip those properties in patch mode as well.

This fixes a sync error ("Cannot change 'md5' directly in group library") when
a group attachment is updated locally.
2016-08-15 04:38:04 -04:00
..
data Save snapshots via nsIWebBrowserPersist instead of WebPageDump 2016-06-02 16:14:29 -04:00
advancedSearchTest.js Fix test breakage from db33163a9 2016-03-25 02:31:54 -04:00
attachmentsTest.js Update test for fcb6e0c06 2016-06-02 16:37:26 -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 Use new groups for collections tests 2016-07-18 17:51:59 -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 Changes date parsing and handling for feeds. Closes #1024, #1025 2016-06-14 13:22:04 +03: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 Feed syncing (#1044) 2016-06-22 03:24:22 -04:00
fileInterfaceTest.js Make various collection methods synchronous 2016-03-25 18:44:24 -04:00
fileTest.js Fix Travis errors with OS.File.DirectoryIterator for real 2016-06-24 21:12:29 -04:00
fulltextTest.js Fix sync error on missing full-text 2016-04-30 01:24:33 -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 Don't clear md5/mtime in item JSON if skipped in patch mode 2016-08-15 04:38:04 -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 Show hard warning dialog when unlinking or linking to a different account (#1047) 2016-06-27 12:40:38 -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 Fix error modifying existing saved search with more than 1 condition 2016-07-07 07:55:15 -04:00
server_connectorTest.js Fixes freezing occuring on linux while running tests 2016-06-23 16:15:48 +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
syncEngineTest.js Fix handling of object-level 404/412 errors 2016-08-15 02:26:04 -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 Prompt for library data reset on 403 upload error 2016-07-19 22:12:13 -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 collection export 2016-03-21 18:11:30 -04:00
utilities_internalTest.js Gzip-compress API uploads larger than 1000 characters 2016-03-28 02:38:28 -04:00
utilitiesTest.js Fix test failures 2016-03-07 17:13:30 -05: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 Update search test after c1f7a188e2 2016-07-07 08:39:19 -04:00