commit 0c7c40a50fef5dff6db26cdc83ffc55088cb23d1 parent 84498de046e38f98d5d09047388c563d696c03a1 Author: Simon Kornblith <simon@simonster.com> Date: Mon, 20 Jun 2011 01:32:53 +0000 Sanitize items by converting document to URL, so that tests will not fail unexpectedly in connector Diffstat:
| M | chrome/content/zotero/tools/testTranslators/translatorTester.js | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -84,7 +84,8 @@ Zotero_TranslatorTester._sanitizeItem = function(item) { if(item.attachments && item.attachments.length) { for (var i=0; i<item.attachments.length; i++) { if(item.attachments[i].document) { - item.attachments[i].document = {}; + item.attachments[i].url = item.attachments[i].document.location.href; + delete item.attachments[i].document; } } }