Disable background full-text processing during tests

This commit is contained in:
Dan Stillman 2018-03-01 03:45:58 -05:00
parent 18d0e980d1
commit 6e4d6a2820

View file

@ -820,6 +820,8 @@ Zotero.Fulltext = Zotero.FullText = new function(){
* Start the idle observer for the background content processor * Start the idle observer for the background content processor
*/ */
this.registerContentProcessor = function () { this.registerContentProcessor = function () {
// Don't start idle observer during tests
if (Zotero.test) return;
if (!Zotero.Prefs.get('sync.fulltext.enabled')) return; if (!Zotero.Prefs.get('sync.fulltext.enabled')) return;
if (!_idleObserverIsRegistered) { if (!_idleObserverIsRegistered) {