Merge remote-tracking branch 'origin/next' into components

This commit is contained in:
Leo Horie 2015-02-24 21:26:07 -05:00
commit 06c6e56cc4
5 changed files with 14 additions and 5 deletions

View file

@ -2227,6 +2227,13 @@ function testMithril(mock) {
xhr.onreadystatechange()
return xhr.$headers["Content-Type"] === undefined
})
test(function() {
var prop = m.request({method: "POST", url: "test", initialValue: "foo"}).then(function(data) { return data; })
var initialValue = prop();
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
return initialValue === "foo"
})
test(function() {
var prop = m.request({method: "POST", url: "test", initialValue: "foo"})
var initialValue = prop();