Remove unchecked data before serializing

This commit is contained in:
Simon Kornblith 2012-02-20 16:20:50 -05:00
parent 2f61e417bc
commit 833031dbdf

View file

@ -318,7 +318,7 @@ Zotero_TranslatorTester.prototype._checkResult = function(test, translate, retur
var translatedItem = Zotero_TranslatorTester._sanitizeItem(translate.newItems[i]);
if(!this._compare(testItem, translatedItem)) {
test.translatedItem = testItem;
test.itemReturned = Zotero_TranslatorTester._sanitizeItem(test.items[i], true);
testDoneCallback(this, test, "unknown", "Item "+i+" does not match");
return;
}