+ test('wrap text in node - text not a first node', function() {\r
+ var c = canvas.create('<div wlxml-tag="header">Alice <span wlxml-tag="span">has a</span> cat</div>');\r
+ var header = c.findNodes({tag: 'header'})[0];\r
+ var wrapper = canvasNode.create({tag: 'aside'});\r
+ c.nodeWrap({inside: header, _with: wrapper, offsetStart: 1, offsetEnd: 4, textNodeIdx: 2});\r
+ assertDomEqual(c.getContent(), '<div wlxml-tag="header">Alice <span wlxml-tag="span">has a</span> <span wlxml-tag="aside">cat</span></div>');\r
+ });\r
+ \r