Merge branch 'bug7531' of https://github.com/csnover/jquery into csnover-bug7531
This commit is contained in:
commit
6c68124928
2 changed files with 14 additions and 1 deletions
|
@ -1361,6 +1361,16 @@ test("jQuery.ajax - active counter", function() {
|
|||
ok( jQuery.active == 0, "ajax active counter should be zero: " + jQuery.active );
|
||||
});
|
||||
|
||||
test( "jQuery.ajax - Location object as url (#7531)", 1, function () {
|
||||
var success = false;
|
||||
try {
|
||||
var xhr = jQuery.ajax({ url: document.location });
|
||||
success = true;
|
||||
xhr.abort();
|
||||
} catch (e) {}
|
||||
|
||||
ok( success, "document.location did not generate exception" );
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue