diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2009-05-16 20:22:47 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2009-05-16 20:22:47 +0000 |
commit | 29411a4405c73b20244108db6bb868f3f11ccd73 (patch) | |
tree | 26f96698e79f8da7d4b7717f2d75b717270915b5 /test | |
parent | 4a99fcf6e4b152706b951df584614da32b08f6e4 (diff) | |
download | jquery-29411a4405c73b20244108db6bb868f3f11ccd73.tar.gz jquery-29411a4405c73b20244108db6bb868f3f11ccd73.zip |
error case for an ajax test
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/ajax.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index a049fecef..5a95921fa 100644 --- a/test/unit/ajax.js +++ b/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(); } }); |