mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Tests: fix comparing of GradientColor#hilite.
This commit is contained in:
parent
35d71e9e33
commit
a2e3759fb8
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue