Commit 06b89271 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Added test for #970

parent e6ffe025
......@@ -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();
}
});
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment