www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8c4e2f0d49fa0575eb9e67b14ed41cf6425a636c
parent b5e4334df557d62ee344b33d74130a03a021c9d9
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 12 Jul 2012 10:01:59 -0400

Fix data mismatch false positives

Diffstat:
Mchrome/content/zotero/tools/testTranslators/translatorTester.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -507,7 +507,7 @@ Zotero_TranslatorTester.prototype._checkResult = function(test, translate, retur if(!this._compare(testItem, translatedItem)) { // Show diff - this._debug(this, "Data mismatch detected:"); + this._debug(this, "TranslatorTester: Data mismatch detected:"); this._debug(this, this._generateDiff(testItem, translatedItem)); // Save items. This makes it easier to correct tests automatically. @@ -602,7 +602,7 @@ Zotero_TranslatorTester.prototype._compare = function(a, b) { } for(var key in a) { if(!a.hasOwnProperty(key)) continue; - if(!b.hasOwnProperty(key)) return false; + if(a[key] !== false && !b.hasOwnProperty(key)) return false; if(!this._compare(a[key], b[key])) return false; } for(var key in b) {