From 859bbecc67cbb0d81cf8639c4cfefbf39151faef Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 31 Jan 2014 19:01:16 +0100 Subject: Fix in color morphing --- spec/spec/color.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec') diff --git a/spec/spec/color.js b/spec/spec/color.js index 526b544..eec3f48 100644 --- a/spec/spec/color.js +++ b/spec/spec/color.js @@ -60,6 +60,14 @@ describe('Color', function() { expect(morphed.g).toBe(51) expect(morphed.b).toBe(127) }) + + it('morphes color to 1 with higher values', function() { + var destination = new SVG.Color('#fff') + var morphed = color.morph(destination).at(2) + expect(morphed.r).toBe(255) + expect(morphed.g).toBe(255) + expect(morphed.b).toBe(255) + }) }) }) -- cgit v1.2.3