var c = canvas.create(utils.cleanUp('\\r
<div wlxml-tag="section">\\r
<div wlxml-tag="div" wlxml-class="list-items-enum">\\r
- <div wlxml-tag="div" wlxml-class="item">alice</div>\\r
+ <div wlxml-tag="div" wlxml-class="item">alice <span wlxml-tag="span"></span</div>\\r
<div wlxml-tag="div" wlxml-class="item">cat</div>\\r
</div>\\r
</div>'));\r
- var item = c.findNodes({klass: 'item'})[1];\r
- assert.ok(c.nodeInsideList({node: item}));\r
+ assert.ok(c.nodeInsideList({node: c.findNodes({klass: 'item'})[1]}), 'item is inside a list');\r
+ assert.ok(c.nodeInsideList({node: c.findNodes({tag: 'span'})[0]}), 'things nested in item are inside a list');\r
});\r
});\r
});
\ No newline at end of file