X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0fbb8e87c499516530c1d6ce54b1bd7ebc845c7b..2ee6a5d07d57b868eb91c59cb633732771f08b77:/modules/documentCanvas/canvas/canvas.test3.js diff --git a/modules/documentCanvas/canvas/canvas.test3.js b/modules/documentCanvas/canvas/canvas.test3.js index 4ed6ce1..8f779d3 100644 --- a/modules/documentCanvas/canvas/canvas.test3.js +++ b/modules/documentCanvas/canvas/canvas.test3.js @@ -38,6 +38,12 @@ describe('Canvas', function() { children = c.doc().children(); expect(children.length).to.equal(1); expect(children[0]).to.be.instanceOf(documentElement.DocumentNodeElement); + + c = canvas.fromXML('
'), + children = c.doc().children(); + expect(children.length).to.equal(2); + expect(children[0]).to.be.instanceOf(documentElement.DocumentNodeElement); + expect(children[1]).to.be.instanceOf(documentElement.DocumentNodeElement); }); it('reports text nodes', function() { var c = canvas.fromXML('
Alice
'),