add test for 277
This commit is contained in:
parent
c87e174d12
commit
d250908b27
1 changed files with 11 additions and 0 deletions
|
|
@ -752,6 +752,17 @@ function testMithril(mock) {
|
||||||
m.render(root, [m("div.green", [m("div")]), m("div.blue")])
|
m.render(root, [m("div.green", [m("div")]), m("div.blue")])
|
||||||
return root.childNodes.length == 2
|
return root.childNodes.length == 2
|
||||||
})
|
})
|
||||||
|
test(function() {
|
||||||
|
//https://github.com/lhorie/mithril.js/issues/277
|
||||||
|
var root = mock.document.createElement("div")
|
||||||
|
function Field() {
|
||||||
|
this.tag = "div";
|
||||||
|
this.attrs = {};
|
||||||
|
this.children = "hello";
|
||||||
|
}
|
||||||
|
m.render(root, new Field())
|
||||||
|
return root.childNodes.length == 1
|
||||||
|
})
|
||||||
//end m.render
|
//end m.render
|
||||||
|
|
||||||
//m.redraw
|
//m.redraw
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue