aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-09-02 14:47:02 +0200
committerwout <wout@impinc.co.uk>2014-09-02 14:47:02 +0200
commit826649995f1aae806fb9bf8464a4259c4290c4fb (patch)
tree9f4fb1585990bec8e1b90963c5932944561f454b /spec
parent5aa85e605368e4e30c4fcb62abb0031543a7d633 (diff)
downloadsvg.js-826649995f1aae806fb9bf8464a4259c4290c4fb.tar.gz
svg.js-826649995f1aae806fb9bf8464a4259c4290c4fb.zip
Fixed bug in clone() method
Diffstat (limited to 'spec')
-rwxr-xr-xspec/spec/element.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js
index 08a7a3e..1c722cd 100755
--- a/spec/spec/element.js
+++ b/spec/spec/element.js
@@ -419,6 +419,10 @@ describe('Element', function() {
expect(clone.get(0).attr('id')).not.toBe(group.get(0).attr('id'))
expect(clone.get(1).attr('id')).not.toBe(group.get(1).attr('id'))
})
+ it('inserts the clone after the cloned element', function() {
+ clone = rect.clone()
+ expect(rect.next()).toBe(clone)
+ })
})
describe('toString()', function() {