summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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 () {