mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added test for #970
This commit is contained in:
parent
e6ffe02503
commit
06b89271c1
@ -379,4 +379,17 @@ test("evalScripts() with no script elements", function() {
|
|||||||
ok ( true, 'after evalScripts()');
|
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();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user