mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing test for Color#convert.
This commit is contained in:
parent
024e8eb19b
commit
74ddc9e7d1
1 changed files with 11 additions and 0 deletions
|
@ -169,4 +169,15 @@ test('Cloning colors', function() {
|
|||
equals(function() {
|
||||
return new RGBColor(color) != color;
|
||||
}, true);
|
||||
});
|
||||
|
||||
test('Color#convert', function() {
|
||||
var color = new RGBColor(0, 0, 0);
|
||||
var converted = color.convert('rgb');
|
||||
equals(function() {
|
||||
return converted !== color;
|
||||
}, true);
|
||||
equals(function() {
|
||||
return converted.equals(color)
|
||||
}, true);
|
||||
});
|
Loading…
Reference in a new issue