Commit cdb014e0 authored by Eugene Lazutkin's avatar Eugene Lazutkin

Added rawXhrPost() test. Refs #3121.

git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@9427 560b804f-0ae3-0310-86f3-f6aa0a117693
parent 7efffc6d
......@@ -258,6 +258,24 @@
});
return d;
},
function rawXhrPost(t){
var d = new doh.Deferred();
var td = dojo.rawXhrPost({
url: "xhr.html", // self
postContent: "foo=bar&color=blue&height=average",
handle: function(res, ioArgs){
if((dojo._isDocumentOk(ioArgs.xhr))||
(ioArgs.xhr.status == 405)
){
d.callback(true);
}else{
d.errback(false);
}
}
});
// t.t(td instanceof dojo.Deferred);
return d;
},
function xhrPut(t){
var d = new doh.Deferred();
var td = dojo.xhrPut({
......@@ -311,7 +329,6 @@
return d;
}
// FIXME: need to add tests for rawPost
// FIXME: need to add tests for wrapForm
]
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment