Add a test for using a custom document
This commit is contained in:
parent
39e081b711
commit
c1cb3c284e
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user