don't throw error when using console.log in firefox
This commit is contained in:
parent
f3076367ee
commit
cbdbdd7c60
2 changed files with 6 additions and 1 deletions
|
|
@ -795,6 +795,11 @@ function testMithril(mock) {
|
|||
m.render(root, m("div", [m("div", 1), null, [m("div", {key: 3}, 3), m("div", {key: 4}, 4), m("div", {key:5}, 5)], [m("div", {key: 6}, 6)]]))
|
||||
return root.childNodes[0].childNodes.map(function(c) {return c.childNodes ? c.childNodes[0].nodeValue: c.nodeValue}).slice(0, 5).join("") == "13456"
|
||||
})
|
||||
test(function() {
|
||||
var root = mock.document.createElement("div")
|
||||
m.render(root, m("div", [console.log()])) //don't throw in Firefox
|
||||
return true
|
||||
})
|
||||
//end m.render
|
||||
|
||||
//m.redraw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue