From 92fb920e110645bdc6e56a1b349662a6b48a981c Mon Sep 17 00:00:00 2001 From: dotnetCarpenter Date: Mon, 10 Oct 2016 11:47:07 -0200 Subject: Added failing test for PointArray --- spec/spec/array.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') 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 () { -- cgit v1.2.3