From: dotnetCarpenter Date: Mon, 10 Oct 2016 13:47:07 +0000 (-0200) Subject: Added failing test for PointArray X-Git-Tag: 2.3.5~1^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=92fb920e110645bdc6e56a1b349662a6b48a981c;p=svg.js.git Added failing test for PointArray --- diff --git a/spec/spec/array.js b/spec/spec/array.js index 812a290..b043257 100644 --- a/spec/spec/array.js +++ b/spec/spec/array.js @@ -33,6 +33,11 @@ describe('PointArray', function () { expect(array + '').toBe('0,0.15 -100,-3.141592654 50,100') }) + 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') + }) }) describe('PathArray', function () {