summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-08-01 15:52:37 +0200
committerwout <wout@impinc.co.uk>2014-08-01 15:52:37 +0200
commitc2d1b2916b38d111d8672826c1219ab891567798 (patch)
treed3a4a8b50529b26c075dd10bc0557599ea12028b /spec
parent4bfb6258c36e3e9c2a6eacb9cf22227a1bfea4bb (diff)
downloadsvg.js-c2d1b2916b38d111d8672826c1219ab891567798.tar.gz
svg.js-c2d1b2916b38d111d8672826c1219ab891567798.zip
Added one more spec on raw importing
Diffstat (limited to 'spec')
-rwxr-xr-xspec/spec/element.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js
index 1e190e4..d7eae4a 100755
--- a/spec/spec/element.js
+++ b/spec/spec/element.js
@@ -528,6 +528,11 @@ describe('Element', function() {
expect(draw.get(0).get(1).type).toBe('circle')
expect(draw.get(0).get(1).attr('fill')).toBe('#ff0066')
})
+ it('does not import on single elements, even with an argument it acts as a getter', function() {
+ var rect = draw.rect(100,100).id(null)
+ , result = rect.svg('<circle r="300"></rect>')
+ expect(result).toBe('<rect width="100" height="100"></rect>')
+ })
})
})
})