From 1cdaa3a86bce418dba2619b261d2b39a0ec68112 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 21 May 2011 13:34:27 +0200 Subject: [PATCH] Add failing Color cloning tests. --- test/tests/Color.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/tests/Color.js b/test/tests/Color.js index abf078bd..2cb7f689 100644 --- a/test/tests/Color.js +++ b/test/tests/Color.js @@ -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); }); \ No newline at end of file