aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-02-05 14:02:38 +0100
committerwout <wout@impinc.co.uk>2014-02-05 14:02:38 +0100
commit85a0e6e28793fa85282857e665e437ab4ac6c875 (patch)
tree4ff37f1bcbc1528efe8a668111976f8858db545f /spec
parent7bb2ec3885a129933e7dd02a73ce8260732d34ac (diff)
downloadsvg.js-85a0e6e28793fa85282857e665e437ab4ac6c875.tar.gz
svg.js-85a0e6e28793fa85282857e665e437ab4ac6c875.zip
Fix in patharray arc
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/path.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec/path.js b/spec/spec/path.js
index 85d596e..2862a92 100644
--- a/spec/spec/path.js
+++ b/spec/spec/path.js
@@ -158,6 +158,10 @@ describe('Path', 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')
})
+ it('renders path array correctly to string', function() {
+ path = path.plot('M 50 60 A 60 60 1 1 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 1 1 0 50 -60 H 100 V 100 L 20 30 C 10 20 30 40 50 60')
+ })
})
describe('length()', function() {