aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-03-25 10:55:22 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-03-25 10:55:22 +0000
commit06b89271c1c23e48f627d25b3df05ceef5c8fbc8 (patch)
treecf07667e3812c9118246d9dadcf1fb57a21f78a4 /src
parente6ffe025033f82d752ec4966c6b12c49d8e1dc29 (diff)
downloadjquery-06b89271c1c23e48f627d25b3df05ceef5c8fbc8.tar.gz
jquery-06b89271c1c23e48f627d25b3df05ceef5c8fbc8.zip
Added test for #970
Diffstat (limited to 'src')
-rw-r--r--src/ajax/ajaxTest.js13
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();
+ }
+ });
+});
+
}