aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-28 11:16:10 +0100
committerwout <wout@impinc.co.uk>2013-03-28 11:16:10 +0100
commit089816c84f8ae573cf558fe3b0242847f9eacbe9 (patch)
tree7d605ae4dfd44d434a260aff6298d249f1b4bc62 /spec
parent7b0ba313154e6990fe0d11caa981dc4102193e5e (diff)
downloadsvg.js-089816c84f8ae573cf558fe3b0242847f9eacbe9.tar.gz
svg.js-089816c84f8ae573cf558fe3b0242847f9eacbe9.zip
Bug fix: recreating defs after clear()0.12
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/container.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec/container.js b/spec/spec/container.js
index 384aaf2..47e53ee 100644
--- a/spec/spec/container.js
+++ b/spec/spec/container.js
@@ -186,6 +186,12 @@ describe('Container', function() {
draw.clear()
expect(draw.children().length).toBe(0)
})
+ it('should create a new defs node', function() {
+ draw.rect(100,100).maskWith(draw.circle(100, 100))
+ expect(draw._defs instanceof SVG.Defs).toBe(true)
+ draw.clear()
+ expect(draw._defs instanceof SVG.Defs).toBe(true)
+ })
})
describe('each()', function() {