fix disappearing link text
This commit is contained in:
parent
9dcffab2ac
commit
d684b0fceb
7 changed files with 17 additions and 9 deletions
|
|
@ -141,6 +141,12 @@ function testMithril(mock) {
|
|||
m.render(root, m("ul", [{subtree: "retain"}]))
|
||||
return root.childNodes[0].childNodes[0].childNodes[0].nodeName === "A"
|
||||
})
|
||||
test(function() {
|
||||
var root = mock.document.createElement("div")
|
||||
m.render(root, m("a", {config: m.route}, "test"))
|
||||
m.render(root, m("a", {config: m.route}, "test"))
|
||||
return root.childNodes[0].childNodes[0].nodeValue === "test"
|
||||
})
|
||||
|
||||
//m.redraw
|
||||
test(function() {
|
||||
|
|
@ -264,14 +270,12 @@ function testMithril(mock) {
|
|||
var prop = m.request({method: "POST", url: "http://domain.com:80", data: {}}).then(function(value) {return value})
|
||||
var e = mock.XMLHttpRequest.$events.pop()
|
||||
e.target.onload(e)
|
||||
console.log(prop().url)
|
||||
return prop().url === "http://domain.com:80"
|
||||
})
|
||||
test(function() {
|
||||
var prop = m.request({method: "POST", url: "http://domain.com:80/:test1", data: {test1: "foo"}}).then(function(value) {return value})
|
||||
var e = mock.XMLHttpRequest.$events.pop()
|
||||
e.target.onload(e)
|
||||
console.log(prop().url)
|
||||
return prop().url === "http://domain.com:80/foo"
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue