X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/58f12279b796c932263a4cfad12c3f17695be02a..756c5554a2b6a23eb95a7e538b4fe45f06b644e5:/modules/documentCanvas/tests/canvas.test.js?ds=sidebyside diff --git a/modules/documentCanvas/tests/canvas.test.js b/modules/documentCanvas/tests/canvas.test.js index afe777a..fc842e5 100644 --- a/modules/documentCanvas/tests/canvas.test.js +++ b/modules/documentCanvas/tests/canvas.test.js @@ -179,12 +179,12 @@ define([ var c = canvas.create(utils.cleanUp('\
\
\ -
alice
\ +
alice \
cat
\
\
')); - var item = c.findNodes({klass: 'item'})[1]; - assert.ok(c.nodeInsideList({node: item})); + assert.ok(c.nodeInsideList({node: c.findNodes({klass: 'item'})[1]}), 'item is inside a list'); + assert.ok(c.nodeInsideList({node: c.findNodes({tag: 'span'})[0]}), 'things nested in item are inside a list'); }); }); }); \ No newline at end of file