add test for double removal
This commit is contained in:
parent
34b3ef9e97
commit
7e73004b28
1 changed files with 6 additions and 0 deletions
|
|
@ -377,6 +377,12 @@ function testMithril(mock) {
|
||||||
m.module(root, {controller: function() {}, view: function() {}})
|
m.module(root, {controller: function() {}, view: function() {}})
|
||||||
return unloaded === true
|
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
|
//end m.render
|
||||||
|
|
||||||
//m.redraw
|
//m.redraw
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue