diff options
author | wout <wout@impinc.co.uk> | 2013-07-23 16:27:31 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-07-23 16:27:31 +0100 |
commit | d487260b7c4f08dc9b018d7bf5ac6bc3f0995015 (patch) | |
tree | d3cdee9e6b67d8dad3ee808b813f27f177d56453 /spec | |
parent | 9773661d9321927b5b86feef007fabba68eccf32 (diff) | |
download | svg.js-d487260b7c4f08dc9b018d7bf5ac6bc3f0995015.tar.gz svg.js-d487260b7c4f08dc9b018d7bf5ac6bc3f0995015.zip |
Reworked SVG.Text to give more granular control
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/text.js | 2 | ||||
-rw-r--r-- | spec/spec/textpath.js | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/spec/spec/text.js b/spec/spec/text.js index 5ec9640..0d72a91 100644 --- a/spec/spec/text.js +++ b/spec/spec/text.js @@ -82,7 +82,7 @@ describe('Text', function() { describe('move()', function() { it('should set the x and y position', function() { text.move(123,456) - expect(text.lines[0].node.getAttribute('x')).toBe('123') + expect(text.node.getAttribute('x')).toBe('123') expect(text.node.getAttribute('y')).toBe('456') }) }) diff --git a/spec/spec/textpath.js b/spec/spec/textpath.js index 4645e37..286b07e 100644 --- a/spec/spec/textpath.js +++ b/spec/spec/textpath.js @@ -24,11 +24,6 @@ describe('TextPath', function() { it('stores a reference to the textPath', function() { expect(text.path(data).textPath instanceof SVG.TextPath).toBe(true) }) - it('creates a plot() method on the text object', function() { - expect(typeof text.plot).toBe('undefined') - text.path(data) - expect(typeof text.plot).toBe('function') - }) }) })
\ No newline at end of file |