Skip to content

Commit

Permalink
error case for an ajax test
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonaaron committed May 16, 2009
1 parent 4a99fcf commit 29411a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/unit/ajax.js
Expand Up @@ -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();
}
});
Expand Down

0 comments on commit 29411a4

Please sign in to comment.