From: Aleksander Ɓukasz Date: Thu, 27 Jun 2013 11:01:45 +0000 (+0200) Subject: Test for canvas.nodeInsideList X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/58f12279b796c932263a4cfad12c3f17695be02a Test for canvas.nodeInsideList --- diff --git a/modules/documentCanvas/tests/canvas.test.js b/modules/documentCanvas/tests/canvas.test.js index 0589c11..afe777a 100644 --- a/modules/documentCanvas/tests/canvas.test.js +++ b/modules/documentCanvas/tests/canvas.test.js @@ -174,5 +174,17 @@ define([
cat
\ ')); }); + + test('checking if node is inside a list', function() { + var c = canvas.create(utils.cleanUp('\ +
\ +
\ +
alice
\ +
cat
\ +
\ +
')); + var item = c.findNodes({klass: 'item'})[1]; + assert.ok(c.nodeInsideList({node: item})); + }); }); }); \ No newline at end of file