mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing Color cloning tests.
This commit is contained in:
parent
888a5cf348
commit
1cdaa3a86b
1 changed files with 11 additions and 0 deletions
|
@ -158,4 +158,15 @@ test('Setting HSBColor#gray', function() {
|
|||
test('Color.read(channels)', function() {
|
||||
var color = Color.read([0, 0, 1]);
|
||||
compareRGBColors(color, [0, 0, 1, 1]);
|
||||
});
|
||||
|
||||
test('Cloning colors', function() {
|
||||
var color = new RGBColor(0, 0, 0);
|
||||
equals(function() {
|
||||
return color.clone() != color;
|
||||
}, true);
|
||||
|
||||
equals(function() {
|
||||
return new RGBColor(color) != color;
|
||||
}, true);
|
||||
});
|
Loading…
Reference in a new issue