X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/04bf18e5d4d0d3d4a3663b8979eaf98417f44140..aa19ea0b08ad083be37ebc43aa9ba3f2bf63a043:/modules/documentCanvas/canvas/canvas.test3.js diff --git a/modules/documentCanvas/canvas/canvas.test3.js b/modules/documentCanvas/canvas/canvas.test3.js index 6f28439..32e6190 100644 --- a/modules/documentCanvas/canvas/canvas.test3.js +++ b/modules/documentCanvas/canvas/canvas.test3.js @@ -358,6 +358,8 @@ describe('Canvas', function() { expect(returned.sameNode(parent)).to.be.true; expect(returned.sameNode(parent2)).to.be.true; + expect(returned.getWlxmlTag()).to.equal('header'); + expect(returned.getWlxmlClass()).to.equal('some.class'); }); it('wraps DocumentTextElement', function() { var c = canvas.fromXML('
Alice
'), @@ -369,6 +371,8 @@ describe('Canvas', function() { expect(returned.sameNode(parent)).to.be.true; expect(returned.sameNode(parent2)).to.be.true; + expect(returned.getWlxmlTag()).to.equal('header'); + expect(returned.getWlxmlClass()).to.equal('some.class'); }); it('wraps part of DocumentTextElement', function() { @@ -384,6 +388,8 @@ describe('Canvas', function() { expect(children[0].getText()).to.equal('Alice'); expect(children[1].sameNode(returned)).to.be.true; + expect(returned.getWlxmlTag()).to.equal('header'); + expect(returned.getWlxmlClass()).to.equal('some.class'); expect(children[1].children().length).to.equal(1); expect(children[1].children()[0].getText()).to.equal(' has a ');