diff options
author | wout <wout@impinc.co.uk> | 2013-05-08 11:10:20 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-05-08 11:10:20 +0100 |
commit | 9de0c38159d4ef6a187545a35bb887ffdb123dce (patch) | |
tree | 848b9f188c09901e0ebff844c4e97ce13d90036b /spec | |
parent | 80f89b23313cbad8cf7dd2f25ebf760debde54e7 (diff) | |
download | svg.js-9de0c38159d4ef6a187545a35bb887ffdb123dce.tar.gz svg.js-9de0c38159d4ef6a187545a35bb887ffdb123dce.zip |
Removing defs and references on clear()
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/container.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec/container.js b/spec/spec/container.js index 9554ed6..24feb00 100644 --- a/spec/spec/container.js +++ b/spec/spec/container.js @@ -187,10 +187,10 @@ describe('Container', function() { expect(draw.children().length).toBe(0) }) it('should create a new defs node', function() { + var oldDefs = draw.defs() 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) + expect(draw.defs()).not.toBe(oldDefs) }) }) |