From a2e3759fb8029885207d60cde81a1bea576c46c0 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 17 Mar 2013 15:23:01 +0100 Subject: [PATCH] Tests: fix comparing of GradientColor#hilite. --- test/lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/helpers.js b/test/lib/helpers.js index 563eea81..572e0ab4 100644 --- a/test/lib/helpers.js +++ b/test/lib/helpers.js @@ -118,7 +118,7 @@ function compareGradientColors(gradientColor, gradientColor2, checkIdentity) { return gradientColor[key] !== gradientColor2[key]; }, true, 'Strict compare GradientColor#' + key); } - equals(gradientColor[key].toString(), gradientColor2[key].toString(), + equals(gradientColor[key] && gradientColor[key].toString(), gradientColor2[key] && gradientColor2[key].toString(), 'Compare GradientColor#' + key); }); equals(function() {