diff options
author | wout <wout@impinc.co.uk> | 2014-02-04 10:53:20 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-02-04 10:53:20 +0100 |
commit | 5c9f99f1be78ec827da79c55ea6ed8561626e4d6 (patch) | |
tree | 2f3373ae075832910e02c9f7ca8a413ae42464cb /spec | |
parent | ef026b37848e7a0379649fcec8a5bca66ec657fe (diff) | |
download | svg.js-5c9f99f1be78ec827da79c55ea6ed8561626e4d6.tar.gz svg.js-5c9f99f1be78ec827da79c55ea6ed8561626e4d6.zip |
Fix for arcs in SVG.PathArray#toString method
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/path.js | 7 |
1 files changed, 7 insertions, 0 deletions
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') + }) + }) }) |