zotero/test
Dan Stillman 819be60796 Switch to XMLHttpRequest for processDocuments()
processDocuments() now uses an XHR 'document' request, wrapped to
provide a 'location' property, and uses promises for a simpler call
signature (though the old one will continue to work, for existing
translators). 'done' and 'exception' can now be handled via promises,
and in the translator sandbox an optional noCompleteOnError argument
instructs it not to automatically cancel the translation process with an
error (e.g., for supplementary materials).

Since we do need a hidden browser in some situations (e.g., for saving
snapshots), the old hidden-browser-based processDocuments() is still
available as Zotero.HTTP.loadDocuments().

This hopefully also fixes various problems with document property access
in translation-server.
2017-10-05 17:18:42 -04:00
..
components Add -e flag to runtests.sh to stop tests after a given file 2017-06-20 05:48:38 -04:00
content Allow parentID in importFileAttachment() test support function 2017-08-30 18:08:25 -04:00
resource Support generators in tests via coMocha, instead of custom code 2017-06-01 11:36:17 -04:00
tests Switch to XMLHttpRequest for processDocuments() 2017-10-05 17:18:42 -04: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 e10s for tests 2017-10-04 21:35:22 -04:00