X-Git-Url: http://git.asbjorn.it/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=2624b5583f8a8cb46464976eeb47366b64b2ebb4;hp=abe90c88ea17b9d7eb7c0b559d2812c1412d7775;hb=0e5b341cc0f3f9bf0f6659e09704f2267cfdfdba;hpb=325dcdc2ab05173f809b9d83af59918b3695cc23 diff --git a/test/unit/ajax.js b/test/unit/ajax.js index abe90c8..2624b55 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -415,6 +415,18 @@ test(".ajax() - contentType" , function() { }); +test(".ajax() - protocol-less urls", function() { + expect(1); + + jQuery.ajax({ + url: "//somedomain.com", + beforeSend: function( xhr, settings ) { + equals(settings.url, location.protocol + "//somedomain.com", "Make sure that the protocol is added."); + return false; + } + }); +}); + test(".ajax() - hash", function() { expect(3);