From 58f12279b796c932263a4cfad12c3f17695be02a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 27 Jun 2013 13:01:45 +0200 Subject: [PATCH] Test for canvas.nodeInsideList --- modules/documentCanvas/tests/canvas.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.20.1