Added test for #970

This commit is contained in:
Jörn Zaefferer 2007-03-25 10:55:22 +00:00
parent e6ffe02503
commit 06b89271c1

View file

@ -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();
}
});
});
}