Add failing test for Color#convert.

This commit is contained in:
Jonathan Puckey 2011-05-21 17:25:05 +02:00
parent 024e8eb19b
commit 74ddc9e7d1

View file

@ -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);
});