add comments and tests for 219

This commit is contained in:
Leo Horie 2014-08-20 18:53:13 -04:00
parent 91b294e648
commit dbac7f8468
2 changed files with 25 additions and 1 deletions

View file

@ -744,6 +744,12 @@ function testMithril(mock) {
return unloaded1 === true && unloaded2 === true
})
test(function() {
var root = mock.document.createElement("div")
m.render(root, [m("div.blue")])
m.render(root, [m("div.green", [m("div")]), m("div.blue")])
return root.childNodes.length == 2
})
//end m.render
//m.redraw