diff options
author | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-10 11:47:07 -0200 |
---|---|---|
committer | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-12 12:52:50 -0200 |
commit | 92fb920e110645bdc6e56a1b349662a6b48a981c (patch) | |
tree | cd0cfa04ec00c9392fae639cea903c9f3150d251 /spec | |
parent | efa504adee982a9fcdd914a5bacd1aa2f28859fc (diff) | |
download | svg.js-92fb920e110645bdc6e56a1b349662a6b48a981c.tar.gz svg.js-92fb920e110645bdc6e56a1b349662a6b48a981c.zip |
Added failing test for PointArray
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/array.js | 5 |
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 () { |