From 5c9f99f1be78ec827da79c55ea6ed8561626e4d6 Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 4 Feb 2014 10:53:20 +0100 Subject: Fix for arcs in SVG.PathArray#toString method --- spec/spec/path.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec') diff --git a/spec/spec/path.js b/spec/spec/path.js index 9503e3b..38ec932 100644 --- a/spec/spec/path.js +++ b/spec/spec/path.js @@ -152,6 +152,13 @@ describe('Path', function() { expect(path.node.getAttribute('d')).toBe('M 0 0') }) }) + + describe('toString()', function() { + it('renders path array correctly to string', function() { + path = path.plot('M 50 60 A 60 60 0 0 0 50 -60 H 100 V 100 L 20 30 C 10 20 30 40 50 60') + expect(path.node.getAttribute('d')).toBe('M 50 60 A 60 60 0 0 0 50 -60 H 100 V 100 L 20 30 C 10 20 30 40 50 60') + }) + }) }) -- cgit v1.2.3