+ test('create list from existing nodes reverse', function() {\r
+ var c = new canvas.Canvas('<section><div>Alice</div>has<div>a cat</div><div>some text</div></section>');\r
+ var div1 = c.getNode({tag:'div'})[0];\r
+ var div2 = c.getNode({tag:'div'})[1];\r
+ \r
+ c.createList({start: div2, end: div1});\r
+ \r
+ assert.xmlEqual(c.toXML(), '\\r
+ <section>\\r
+ <div class="list.items">\\r
+ <div class="item">Alice</div>\\r
+ <div class="item">has</div>\\r
+ <div class="item">a cat</div>\\r
+ </div>\\r
+ <div>some text</div>\\r
+ </section>');\r
+\r
+ });\r
+ \r