Skip to content
Permalink
Browse files

Added test for #970

  • Loading branch information
jzaefferer committed Mar 25, 2007
1 parent e6ffe02 commit 06b89271c1c23e48f627d25b3df05ceef5c8fbc8
Showing with 13 additions and 0 deletions.
  1. +13 −0 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();
}
});
});

}

0 comments on commit 06b8927

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