From 5d80e4393109e181b0ba997e338530c0e2af1dd7 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 15 Jun 2015 16:15:07 +0200 Subject: Fixed bug with doc() which should always return the root SVG Replaced split-function with an easier and faster one --- spec/spec/doc.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec') 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) }) -- cgit v1.2.3