add regression test
This commit is contained in:
parent
ec8e42a923
commit
b847ca1067
1 changed files with 6 additions and 0 deletions
|
|
@ -1904,6 +1904,12 @@ function testMithril(mock) {
|
||||||
m.render(root, vdom)
|
m.render(root, vdom)
|
||||||
return root.childNodes[0].class == "a"
|
return root.childNodes[0].class == "a"
|
||||||
})
|
})
|
||||||
|
test(function() {
|
||||||
|
var root = mock.document.createElement("div")
|
||||||
|
m.render(root, m(".a", [1]))
|
||||||
|
m.render(root, m(".a", []))
|
||||||
|
return root.childNodes[0].childNodes.length == 0
|
||||||
|
})
|
||||||
//end m.render
|
//end m.render
|
||||||
|
|
||||||
//m.redraw
|
//m.redraw
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue