diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 8a76533409..1675b67e5f 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -506,6 +506,11 @@ Zotero_TranslatorTester.prototype._checkResult = function(test, translate, retur var translatedItem = Zotero_TranslatorTester._sanitizeItem(translate.newItems[i]); if(!this._compare(testItem, translatedItem)) { + // Show diff + this._debug(this, "Data mismatch detected:"); + this._debug(this, this._generateDiff(testItem, translatedItem)); + + // Save items. This makes it easier to correct tests automatically. var m = translate.newItems.length; test.itemsReturned = new Array(m); for(var j=0; j