diff --git a/test/unit.spec.js b/test/unit.spec.js index fc3229d..e8f05a7 100644 --- a/test/unit.spec.js +++ b/test/unit.spec.js @@ -46,6 +46,12 @@ describe('canvas2svg', function() { }); + it("can be created on another document", function () { + var otherDoc = document.implementation.createHTMLDocument(); + var ctx = C2S({document: otherDoc}); + expect(ctx.getSvg().ownerDocument).to.equal(otherDoc); + }); + }); describe("can export to", function() {