Commit 29411a44 authored by Brandon Aaron's avatar Brandon Aaron

error case for an ajax test

parent 4a99fcf6
......@@ -642,8 +642,12 @@ test("jQuery.ajax() - script, Remote with POST", function() {
type: "POST",
dataType: "script",
success: function(data, status){
ok( foobar, "Script results returned (GET, no callback)" );
equals( status, "success", "Script results returned (GET, no callback)" );
ok( foobar, "Script results returned (POST, no callback)" );
equals( status, "success", "Script results returned (POST, no callback)" );
start();
},
error: function(xhr) {
ok( false, "ajax error, status code: " + xhr.status );
start();
}
});
......
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