mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Improve compareColors() helper.
This commit is contained in:
parent
0b42d594de
commit
b512532d23
2 changed files with 10 additions and 8 deletions
|
@ -161,9 +161,7 @@ test('setting group styles 2', function() {
|
|||
|
||||
// By appending a path with a different fillcolor,
|
||||
// the group's fillColor should return undefined:
|
||||
equals(function() {
|
||||
return group.fillColor;
|
||||
}, undefined);
|
||||
equals(group.fillColor, undefined, 'group.fillColor');
|
||||
|
||||
// But, both paths have a red strokeColor, so:
|
||||
compareColors(group.strokeColor, 'red', 'group.strokeColor');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue