From d514f02c34c2443fbfafe42c817e73b890059f90 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 1 Mar 2012 20:54:05 -0500 Subject: [PATCH] Normalize fields when creating and running translator tests --- .../tools/testTranslators/translatorTester.js | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index d6d9b36ffb..eb101c3281 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -213,12 +213,39 @@ Zotero_TranslatorTester._sanitizeItem = function(item, forSave) { item = JSON.parse(JSON.stringify(item)); } catch(e) {}; - // remove fields to be ignored - const IGNORE_FIELDS = ["complete", "accessDate", "checkFields"]; - for(var j=0, n=IGNORE_FIELDS.length; j