Add failing Color cloning tests.

This commit is contained in:
Jonathan Puckey 2011-05-21 13:34:27 +02:00
parent 888a5cf348
commit 1cdaa3a86b

View file

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