From da287571113df5e3147b136e194ffcd6551f69be Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 21 May 2011 14:07:29 +0200 Subject: [PATCH] compareItems helper: make color comparison strict. --- test/lib/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/helpers.js b/test/lib/helpers.js index 6f447fab..1bbd28b8 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -227,9 +227,9 @@ function compareItems(item, item2) { Base.each(['fillColor', 'strokeColor'], function(key) { if (item[key]) { - // The fillColor should not point to the same color object: + // The color should not point to the same color object: equals(function() { - return item[key] != item2[key]; + return item[key] !== item2[key]; }, true, 'The ' + key + ' should not point to the same color object:'); if (item[key] instanceof GradientColor) { equals(function() {