Dan Stillman
198bd70b59
Make 909b4b31c8
apply to search translators too, and fix tests
...
Addresses https://github.com/zotero/translators/issues/1353
2017-07-05 09:15:12 -04:00
Dan Stillman
88088c68db
Add Sync.Storage.Local.updateSyncStates()
...
This speeds up updating of sync states, particularly after resetting
file sync history.
2017-07-01 06:31:46 -04:00
Dan Stillman
9a3ff2d244
Add .contentType and .charset options for importFromFile()
...
And use them in new importTextAttachment() and importHTMLAttachment()
test support functions. These can be used to avoid needing a hidden
browser for determining the character set of the imported text
documents.
2017-07-01 06:31:46 -04:00
Dan Stillman
22eab3e09d
Don't leave file descriptor open in md5Async()
...
This could cause "Too many open files" errors during file syncing
2017-06-30 17:54:33 -04:00
Dan Stillman
e89778c1ab
Remove some code that's unnecessary now that we're Fx52+ everywhere
2017-06-23 05:03:11 -04:00
Dan Stillman
7c020da594
Don't run feeds update until after schema update promise
...
And tweak feed scheduling in general
2017-06-19 01:25:03 -04:00
Dan Stillman
1a0f125d78
Maybe fix browser test failures by preloading translators
2017-06-19 00:40:52 -04:00
Dan Stillman
47741e75fa
Restore locally deleted collections and searches that changed remotely
...
Also restore items that were in the collections
2017-06-18 09:11:21 -04:00
Dan Stillman
859c506913
Never auto-select new groups, since they always come from syncs
...
Fixes test failure from 2e74cd7831
2017-06-16 05:59:44 -04:00
Dan Stillman
69041832e7
Remove Zotero_Browser tests for new Firefox windows
...
I'm not sure if we need the browser tests at all -- we still translate
some things via hidden browsers, and I'm not sure what we have that
tests that -- but we definitely don't need to test saving before the
Zotero pane is opened.
2017-06-16 04:55:29 -04:00
Dan Stillman
4032edcf7d
Ignore note markup conflicts without cache when text content matches
2017-06-14 03:37:03 -04:00
Dan Stillman
3ebc238320
Close prefs window after WebDAV Verify Server tests
2017-06-14 03:37:03 -04:00
Dan Stillman
ccb30351c0
Fix incorrect purging of files on WebDAV
2017-06-14 03:20:23 -04:00
Adomas Venčkauskas
a17b486e4b
Don't auto-migrate data dir if target on a different drive
...
See https://forums.zotero.org/discussion/comment/277632/#Comment_277632
2017-06-13 17:17:34 -04:00
Dan Stillman
cd6079d869
Relax last-sync-time check in sync runner test
2017-06-06 02:14:23 -04:00
Dan Stillman
b79ecfb5fe
Temporarily disable test for non-integer getAsync()
2017-06-05 03:00:15 -04:00
Dan Stillman
898a1dc679
Add alternative to padStart for test in Fx45
2017-06-01 16:44:11 -04:00
Dan Stillman
05ff16c17f
Fix some breakage from 013dc958b3
2017-06-01 15:39:42 -04:00
Dan Stillman
ede03f4366
Update some Sinon reset() calls
...
In Sinon 2, reset() now resets both behavior and history, so if a stub
specifies behavior and we want to use it again, we have to call
resetHistory().
2017-06-01 15:39:42 -04:00
Tom Najdek
a59b78e59e
Tweak test syntax that breaks with current version of chai-as-promised
...
* Second parameter should be an optional message, however is treated
as a string that should be contained in the error message
2017-06-01 11:36:18 -04:00
Tom Najdek
4ec6925220
Remove "Error:" expected in error messages.
...
* "Error:" seems to have been injected into the message by Bluebird,
but that's no longer the case
2017-06-01 11:36:18 -04:00
Tom Najdek
063e13ef22
Modernize sinon.stub() calls
2017-06-01 11:36:17 -04:00
Dan Stillman
c0f7f6070a
Avoid a warning from a storageRequest test from the item not existing
2017-05-23 02:12:00 -04:00
Dan Stillman
e1fb28faa9
Convert some object ids from strings to integers after 4e1937680
2017-05-23 02:10:26 -04:00
Dan Stillman
265df6d48c
Skip edit check if skipAll is passed to object save
2017-05-22 17:29:56 -04:00
Dan Stillman
1b8704f133
Firefox 54 compatibility: File.createFromFileName() returns a promise
2017-05-22 06:04:27 -04:00
Dan Stillman
a3eea03a38
Firefox 54 compatibility: rename "new" and "delete" XBL methods
2017-05-22 06:03:14 -04:00
Dan Stillman
fc4eb5308f
Remove related-item relations when deleting item
2017-05-19 12:11:51 -04:00
Dan Stillman
90a27f8d4b
Add Zotero.URI.getURIItemLibraryKeyFromDB()
...
Allows getting libraryID and key without relying on library data being
loaded (e.g., at startup)
2017-05-19 12:11:21 -04:00
Dan Stillman
f12ae67c47
Test for e1986b460e
(export with empty attachment path)
2017-05-14 05:26:39 -04:00
Dan Stillman
20121b9b97
Fix tag selector tests (broken in 5963c02db
)
2017-05-12 06:13:02 -04:00
Dan Stillman
5963c02dbb
Fix "Display All Tags in This Library" (broken in fe186333b
)
2017-05-12 05:37:46 -04:00
Dan Stillman
60810ea0a0
Fix access date without time coming from sync
2017-05-11 00:44:37 -04:00
Adomas Venčkauskas
dbeecb9b0a
Make itemFromCSLJSON independent of Zotero.Item existance.
...
Addresses !zotero/zotero-connectors#121"
2017-05-08 09:24:34 +03:00
Dan Stillman
e0e22225bc
Fix entering date without time into Accessed
...
https://forums.zotero.org/discussion/65560/5-0-beta-accessed-field-changes-dates
2017-05-05 17:59:53 -04:00
Dan Stillman
40da5f61a0
Still process downloads if uploads fail for a library
2017-05-05 03:26:29 -04:00
Dan Stillman
a1bd2bace5
Remove objects from sync queue if missing from response
...
While objects in the sync queue that fail to save should remain in the
queue, objects that just don't exist remotely need to be removed, or
else they'll be retried forever.
2017-05-05 01:04:16 -04:00
Dan Stillman
7a839e19a6
Fix background/stopOnError options for sync engine tests
2017-05-05 00:26:43 -04:00
Dan Stillman
2eef1702e0
Prevent items in group libraries from being added to My Publications
...
And remove existing group items that have been added
2017-05-04 21:18:44 -04:00
Adomas Venčkauskas
37fa0c203f
Write sessionID into the doc on new session creation
2017-05-03 14:34:00 +03:00
Adomas Ven
7d79865023
Merge pull request #1222 from adomasven/feature/document-preferences-cleanup
...
Document preferences cleanup
2017-05-03 13:09:49 +03:00
Dan Stillman
5b0b874435
Purge old objects in sync cache after upload
2017-05-03 03:43:59 -04:00
Dan Stillman
aa1fc01b31
Fix syncing of related item removal
2017-05-02 20:15:54 -04:00
Adomas Venčkauskas
3c19bbffe4
Remove store references in document option. Closes #1216
2017-05-02 16:29:19 +03:00
Adomas Venčkauskas
5e3c7bf63d
Fix test breakage from a76493f60
2017-05-02 15:09:12 +03:00
Dan Stillman
32b1769f2f
integrationTests.js -> integrationTest.js
2017-04-28 04:12:19 -04:00
Dan Stillman
fe88530120
Recover from a remotely missing parent collection
2017-04-28 03:18:50 -04:00
Dan Stillman
9bd01af2a5
Disallow inPublications for linked-file attachments
2017-04-27 15:33:24 -04:00
Dan Stillman
d715197b2f
Don't show Show/Hide button in My Publications for linked files
2017-04-27 04:52:50 -04:00
Dan Stillman
d527c340c6
Fix "text is not defined" error during full-text content sync
2017-04-26 02:44:01 -04:00