summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authordotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-20 16:49:08 -0200
committerdotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-20 17:45:17 -0200
commit695f26a8df5907f3f49b208eb757ef85b0cd2cfa (patch)
tree942862139226b073b26f75f09673b638b11836bf /spec
parentd07a17de2890bf712a3bd1984e1cbeda2269ba50 (diff)
downloadsvg.js-695f26a8df5907f3f49b208eb757ef85b0cd2cfa.tar.gz
svg.js-695f26a8df5907f3f49b208eb757ef85b0cd2cfa.zip
handle leading and trailing spaces
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/array.js5
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 () {