From: Aleksander Ɓukasz Date: Tue, 9 Jul 2013 10:32:34 +0000 (+0200) Subject: some additional assertions for list test X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/9f174539a3cc0869845fbdca08aa2d1d3e784847 some additional assertions for list test --- diff --git a/modules/documentCanvas/canvas/canvas.test3.js b/modules/documentCanvas/canvas/canvas.test3.js index 3c25cf5..5aa4aad 100644 --- a/modules/documentCanvas/canvas/canvas.test3.js +++ b/modules/documentCanvas/canvas/canvas.test3.js @@ -415,6 +415,9 @@ describe('Canvas', function() { var list = section.children()[0]; expect(list.is('list')).to.equal(true, 'section\'s only child is a list'); expect(list.children().length).to.equal(4, 'list contains four elements'); + list.children().forEach(function(child) { + expect(child.getWlxmlClass()).to.equal('item', 'list childs have wlxml class of item'); + }); }); });