diff options
author | wout <wout@impinc.co.uk> | 2013-03-24 20:25:27 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-03-24 20:25:27 +0100 |
commit | a0076d75bbac8f2c128f9b34e976bcb1ea3caa09 (patch) | |
tree | 381e86815fb236a01d607017c01050d42264952a /spec | |
parent | 20e9f674cb11d0f856baf7e05517cbebda31fdb8 (diff) | |
download | svg.js-a0076d75bbac8f2c128f9b34e976bcb1ea3caa09.tar.gz svg.js-a0076d75bbac8f2c128f9b34e976bcb1ea3caa09.zip |
Added plot() method to SVG.Line
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/line.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/spec/line.js b/spec/spec/line.js index 870ac92..b49d0e1 100644 --- a/spec/spec/line.js +++ b/spec/spec/line.js @@ -99,6 +99,16 @@ describe('Line', function() { }) }) + describe('plot()', function() { + it('should update the start and end points', function() { + line.plot(100,200,300,400) + expect(line.node.getAttribute('x1')).toBe('100') + expect(line.node.getAttribute('y1')).toBe('200') + expect(line.node.getAttribute('x2')).toBe('300') + expect(line.node.getAttribute('y2')).toBe('400') + }) + }) + }) |