diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-15 16:15:07 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-06-15 16:15:07 +0200 |
commit | 5d80e4393109e181b0ba997e338530c0e2af1dd7 (patch) | |
tree | 41f4bee9860bafe86578a47f0e0f5540e3662122 /spec | |
parent | 0cc5347da6bc18e3a1b2bb87ccbe53adc3f7c5c7 (diff) | |
download | svg.js-5d80e4393109e181b0ba997e338530c0e2af1dd7.tar.gz svg.js-5d80e4393109e181b0ba997e338530c0e2af1dd7.zip |
Fixed bug with doc() which should always return the root SVG
Replaced split-function with an easier and faster one
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/spec/doc.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec/doc.js b/spec/spec/doc.js index 96e8cf5..9696935 100755 --- a/spec/spec/doc.js +++ b/spec/spec/doc.js @@ -8,6 +8,10 @@ describe('Doc', function() { expect(draw instanceof SVG.Doc).toBe(true) }) + it('returns itself as Doc', function() { + expect(draw.doc()).toBe(draw) + }) + it('has a defs element', function() { expect(draw.defs() instanceof SVG.Defs).toBe(true) }) |