add test for double removal

This commit is contained in:
Leo Horie 2014-05-21 23:07:48 -04:00
parent 34b3ef9e97
commit 7e73004b28

View file

@ -377,6 +377,12 @@ function testMithril(mock) {
m.module(root, {controller: function() {}, view: function() {}})
return unloaded === true
})
test(function() {
var root = mock.document.createElement("div")
m.render(root, m("div", [[m("a"), m("a")], m("button")]))
m.render(root, m("div", [[m("a")], m("button")]))
return root.childNodes[0].childNodes.length == 2
})
//end m.render
//m.redraw