Tests: fix comparing of GradientColor#hilite.

This commit is contained in:
Jonathan Puckey 2013-03-17 15:23:01 +01:00
parent 35d71e9e33
commit a2e3759fb8

View file

@ -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() {