diff options
author | wout <wout@impinc.co.uk> | 2014-07-12 21:18:26 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-07-12 21:18:26 +0200 |
commit | 40bf2f8ecda3f426e7f13e1d891ab1ab6e004116 (patch) | |
tree | b3d339c104c2c0e829fd5e607428a9e077619e12 /spec | |
parent | 03f358a4d85a292c16774ba64836e0b2937df2fe (diff) | |
download | svg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.tar.gz svg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.zip |
Added support for scale center on matrices
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/spec/element.js | 7 | ||||
-rw-r--r-- | spec/spec/matrix.js | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js index d6988fb..6e1b80e 100755 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -12,6 +12,13 @@ describe('Element', function() { var rect = draw.rect(100,100) expect(rect.node.instance).toBe(rect) }) + + describe('native()', function() { + it('returns the node reference', function() { + var rect = draw.rect(100,100) + expect(rect.native()).toBe(rect.node) + }) + }) describe('attr()', function() { var rect diff --git a/spec/spec/matrix.js b/spec/spec/matrix.js index 1ccb419..5c2286e 100644 --- a/spec/spec/matrix.js +++ b/spec/spec/matrix.js @@ -61,6 +61,12 @@ describe('Matrix', function() { }) }) + describe('native()', function() { + it('returns the node reference', function() { + expect(new SVG.Matrix().native() instanceof SVGMatrix).toBeTruthy() + }) + }) + }) |