diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-03-25 10:55:22 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-03-25 10:55:22 +0000 |
commit | 06b89271c1c23e48f627d25b3df05ceef5c8fbc8 (patch) | |
tree | cf07667e3812c9118246d9dadcf1fb57a21f78a4 /src | |
parent | e6ffe025033f82d752ec4966c6b12c49d8e1dc29 (diff) | |
download | jquery-06b89271c1c23e48f627d25b3df05ceef5c8fbc8.tar.gz jquery-06b89271c1c23e48f627d25b3df05ceef5c8fbc8.zip |
Added test for #970
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax/ajaxTest.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ajax/ajaxTest.js b/src/ajax/ajaxTest.js index 23a76fd49..851be5163 100644 --- a/src/ajax/ajaxTest.js +++ b/src/ajax/ajaxTest.js @@ -379,4 +379,17 @@ test("evalScripts() with no script elements", function() { ok ( true, 'after evalScripts()'); }); +test("custom timeout does not set error message when timeout occurs, see #970", function() { + stop(); + $.ajax({ + url: "data/name.php?wait=10", + timeout: 500, + error: function(request, status) { + ok( status != null, "status shouldn't be null in error handler" ); + equals( "timeout", status ); + start(); + } + }); +}); + } |