Add a test for using a custom document

This commit is contained in:
Conrad Irwin 2015-09-09 00:29:04 -07:00
parent 39e081b711
commit c1cb3c284e

View File

@ -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() { describe("can export to", function() {