Skip to content
Permalink
Browse files

error case for an ajax test

  • Loading branch information
brandonaaron committed May 16, 2009
1 parent 4a99fcf commit 29411a4405c73b20244108db6bb868f3f11ccd73
Showing with 6 additions and 2 deletions.
  1. +6 −2 test/unit/ajax.js
@@ -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();
}
});

0 comments on commit 29411a4

Please sign in to comment.
You can’t perform that action at this time.