From d487260b7c4f08dc9b018d7bf5ac6bc3f0995015 Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 23 Jul 2013 16:27:31 +0100 Subject: Reworked SVG.Text to give more granular control --- spec/spec/text.js | 2 +- spec/spec/textpath.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3