X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=a0f3d49f2d4c5b4031eab9bde53fd138426b9779;hb=cec68e2b00d86357c18b576cbaed52cc1ea42a74;hp=9e6f32de292e8808d4151523ce7009e61adbc135;hpb=a2c2d68d7f29eb543d937a72bdf4b5399b7aa14a;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 9e6f32d..a0f3d49 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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" ); +}); }