From 5a43eae702a49db53276cf73340822b5e1232bdd Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 18 Jun 2011 17:36:35 +0000 Subject: [PATCH] Clear attached document objects when running translator tests --- .../zotero/tools/testTranslators/translatorTester.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index a19105a3b..a720f9a4e 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -164,6 +164,14 @@ Zotero_TranslatorTester.prototype._checkResult = function(test, translate, retur var testItem = test.items[i]; var translatedItem = translate.newItems[i]; + // Clear attachment document objects + if (translatedItem && translatedItem.attachments && translatedItem.attachments.length) { + for (var i=0; i