From: Victor Homyakov Date: Wed, 7 Jan 2015 02:23:16 +0000 (-0500) Subject: Ajax: Fix cross-domain detection test for non-default port X-Git-Tag: 3.0.0-alpha1+compat~154 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b635ee2d36f2ace7a75239de859da9fd777aa0cd;p=jquery.git Ajax: Fix cross-domain detection test for non-default port Closes gh-1954 --- diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 7a5ab3445..35db61699 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -316,7 +316,7 @@ module( "ajax", { return [ request( - loc.protocol + "//" + loc.host + ":" + samePort, + loc.protocol + "//" + loc.hostname + ":" + samePort, "Test matching ports are not detected as cross-domain", false ),