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