Merge branch 'next' into components

This commit is contained in:
Leo Horie 2015-03-27 11:58:59 -04:00
commit 8b1a58bc51
69 changed files with 13028 additions and 10 deletions

View file

@ -3220,6 +3220,17 @@ function testMithril(mock) {
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
return prop().url === "test?foo=1&foo=2"
})
test(function() {
var value
var prop1 = m.request({method: "GET", url: "test", initialValue: 123})
var val1 = prop1()
var prop2 = prop1.then(function() {return 1})
var val2 = prop2()
var prop3 = prop1.then(function(v) {value = v})
var val3 = prop3()
mock.XMLHttpRequest.$instances.pop().onreadystatechange()
return val1 === 123 && val2 === 123 && val3 === 123 && value.method === "GET" && value.url === "test"
})
// m.request over jsonp
test(function(){