zotero/test
Adomas Venčkauskas 78c3d5808b Fix citeproc errors due to improper citeproc state updates
The error is triggered upon initial interaction with a doc after Zotero
restart or if new external citations (copied into the document) are
peresnt and `session.updateSession()` is called without a subsequent
`session.updateDocument()` call. `session.updateSession()` is called
without a subsequent `session.updateDocument()` call every time the
user cancels a citation insert.

More specifically, `session.updateSession()` is called every time a
citation dialog is invoked. It retrieves all citations and writes them
into a local `session.citationsByIndex` object. Moreover, it marks
each citation that hasn't seen before in a `session.newIndices` object.
`session.newIndices` is there to ensure that we load every new citation
into citeproc upon document update. This object is built by marking any
citation that does not appear in the previous invocation's list of
citations as new. However, if the document is never updated (because the
user cancels the insertion) then the new indices are not loaded
into citeproc. This commit fixes that, by excluding citeproc unloaded
items from the previous invocation's citation list.
2019-04-08 17:43:52 +03:00
..
components Add -e flag to runtests.sh to stop tests after a given file 2017-06-20 05:48:38 -04:00
content Fix race conditions in tag selector tests 2019-03-18 04:58:50 -04:00
resource Support generators in tests via coMocha, instead of custom code 2017-06-01 11:36:17 -04:00
tests Fix citeproc errors due to improper citeproc state updates 2019-04-08 17:43:52 +03:00
chrome.manifest Unit testing infrastructure 2015-03-07 16:34:55 -05:00
install.rdf Update maxVersion 2015-10-29 03:57:08 -04:00
runtests.sh Disable updates of bundled files in tests 2018-08-25 16:55:13 -04:00