diff options
author | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-11 19:30:28 -0200 |
---|---|---|
committer | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-12 12:53:24 -0200 |
commit | eed96bcf59c00584527ac87902ba48669cb8cb6e (patch) | |
tree | a500e8e983ef9f85b8a9b4fee645f99668996d8c /spec | |
parent | 92fb920e110645bdc6e56a1b349662a6b48a981c (diff) | |
download | svg.js-eed96bcf59c00584527ac87902ba48669cb8cb6e.tar.gz svg.js-eed96bcf59c00584527ac87902ba48669cb8cb6e.zip |
fixes #525 by accepting/parsing coordianate strings where x and y is seperated by comma and or by space - we count the shape coordinates until (and including) the maximum even number
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/array.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec/array.js b/spec/spec/array.js index b043257..984c6e1 100644 --- a/spec/spec/array.js +++ b/spec/spec/array.js @@ -36,7 +36,7 @@ describe('PointArray', function () { it('parses Polygon points string correctly', function() { var array = new SVG.PointArray('221.08 191.79 0.46 191.79 0.46 63.92 63.8 0.46 284.46 0.46 284.46 128.37 221.08 191.79') - expect(array + '').toBe('221.08, 191.79, 0.46, 191.79, 0.46, 63.92, 63.8, 0.46, 284.46, 0.46, 284.46, 128.37, 221.08, 191.79') + expect(array + '').toBe('221.08,191.79 0.46,191.79 0.46,63.92 63.8,0.46 284.46,0.46 284.46,128.37 221.08,191.79') }) }) |