Skip to content
Permalink
Browse files
Added test for #970
  • Loading branch information
jzaefferer committed Mar 25, 2007
1 parent e6ffe02 commit 06b8927
Showing 1 changed file with 13 additions and 0 deletions.
@@ -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.