diff options
author | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-20 16:49:08 -0200 |
---|---|---|
committer | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-20 17:45:17 -0200 |
commit | 695f26a8df5907f3f49b208eb757ef85b0cd2cfa (patch) | |
tree | 942862139226b073b26f75f09673b638b11836bf /spec | |
parent | d07a17de2890bf712a3bd1984e1cbeda2269ba50 (diff) | |
download | svg.js-695f26a8df5907f3f49b208eb757ef85b0cd2cfa.tar.gz svg.js-695f26a8df5907f3f49b208eb757ef85b0cd2cfa.zip |
handle leading and trailing spaces
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/array.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec/array.js b/spec/spec/array.js index 01927d8..5b951a9 100644 --- a/spec/spec/array.js +++ b/spec/spec/array.js @@ -43,6 +43,11 @@ describe('PointArray', function () { expect(array + '').toBe('2176.6,1708.8 2176.4,1755.8 2245.8,1801.5 2297,1787.8') }) + it('parses points with space delimitered x/y coordinates', function() { + var array = new SVG.PointArray(' 1 2 3 ') + + expect(array + '').toBe('1,2,3') + }) }) describe('PathArray', function () { |