Serialize all items, in case there are multiple
This commit is contained in:
parent
833031dbdf
commit
705672d431
1 changed files with 6 additions and 1 deletions
|
@ -318,7 +318,12 @@ Zotero_TranslatorTester.prototype._checkResult = function(test, translate, retur
|
|||
var translatedItem = Zotero_TranslatorTester._sanitizeItem(translate.newItems[i]);
|
||||
|
||||
if(!this._compare(testItem, translatedItem)) {
|
||||
test.itemReturned = Zotero_TranslatorTester._sanitizeItem(test.items[i], true);
|
||||
var m = translate.newItems.length;
|
||||
test.itemsReturned = new Array(m);
|
||||
for(var j=0; j<m; j++) {
|
||||
test.itemsReturned[j] = Zotero_TranslatorTester._sanitizeItem(translate.newItems[i], true);
|
||||
}
|
||||
|
||||
testDoneCallback(this, test, "unknown", "Item "+i+" does not match");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue