summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authordotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-10 11:47:07 -0200
committerdotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-12 12:52:50 -0200
commit92fb920e110645bdc6e56a1b349662a6b48a981c (patch)
treecd0cfa04ec00c9392fae639cea903c9f3150d251 /spec
parentefa504adee982a9fcdd914a5bacd1aa2f28859fc (diff)
downloadsvg.js-92fb920e110645bdc6e56a1b349662a6b48a981c.tar.gz
svg.js-92fb920e110645bdc6e56a1b349662a6b48a981c.zip
Added failing test for PointArray
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 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 () {