zotero/test/tests
Dan Stillman 78b1d2ee35 Import translation improvements
- Don't block the UI with a progress meter during imports. Instead, show
  a popup in the bottom right when the import is done that shows how
  many items were saved.
- Fix hang when importing some files
- Fix various problems with asynchronous operations/transactions
    - Use the save queue for imports instead of creating concurrent
      transactions that can time out
    - Wait for the save to finish before returning from the translate()
      promise. All save modes now use the save queue, so code that
      handled the non-save-queue process can probably be removed.
    - Serialize child attachments instead of running them concurrently.
      This might make multi-attachment saves a little slower, since they
      can't download at the same time, but it avoids problems with
      concurrent transactions. We might be able to improve this to allow
      concurrent downloads, or allow concurrent saves for a limited
      number of items (e.g., from web saving) if not for larger imports.
- Change collection handling during import, since UI is now active
  - Select the root collection at the beginning of the import
  - Assign items and collections to the root during the import instead
    of at the end
  - Don't select other collections
- Change a few ItemSaver functions to use promises and remove
  unnecessary callbacks. (This includes some connector code that needs
  to be tested.)
- Change some `parentID` variables in ItemSaver to `parentItemID` for
  clarity, since collections are now handled in more places

To-do:

- Save items in smaller batches instead of doing all in the same
  transaction
- Show progress meter in a bottom-right popup during the import
2016-12-11 02:30:34 -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
dataDirectoryTest.js Skip auto data dir migration if target dir exists and is non-empty 2016-11-30 02:09:07 -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 Update deprecated uses of Zotero.getZoteroDirectory()/getZoteroDatabase() 2016-11-27 00:17:56 -05: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 renaming linked attachment files 2016-12-08 03:57:49 -05: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 Disable a test that fails too often on Travis 2016-11-29 04:36:59 -05: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
profileTest.js Point other profiles to new data dir after migration (+ code reorg) 2016-11-27 00:17:56 -05:00
quickCopyTest.js Fix test timeouts caused by Quick Copy initialization 2016-11-22 20:31:58 -05: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 connector server test after 6900a5cc 2016-11-30 22:40:54 -05:00
serverTest.js Add new init(options) signature for server endpoints 2016-12-05 02:55:32 -05:00
storageLocalTest.js Update deprecated uses of Zotero.getZoteroDirectory()/getZoteroDatabase() 2016-11-27 00:17:56 -05: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 Test fixes after 5bceebf56c 2016-11-29 03:52:07 -05: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 Fix running of syncLocal tests 2016-11-28 19:26:39 -05:00
syncRunnerTest.js Don't update feeds after syncs during tests 2016-12-08 05:58:46 -05: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 Import translation improvements 2016-12-11 02:30:34 -05: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 Test fixes after 5bceebf56c 2016-11-29 03:52:07 -05:00
zfsTest.js Always include 'contentType'/'charset'/'filename' in attachment JSON 2016-05-21 16:33:35 -04:00
zoteroPaneTest.js Don't trigger translator loading in download-on-demand test 2016-11-20 02:46:04 -05:00
zoteroTest.js Localized plural form support for Zotero.getString() 2016-12-11 02:30:34 -05:00