aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorBen Toews <mastahyeti@gmail.com>2014-11-22 18:29:13 -0700
committerDave Methvin <dave.methvin@gmail.com>2014-12-11 15:26:04 -0500
commitb091fdbafac33123cba329e6bb48b9281323ca38 (patch)
tree5c38394f8cace39112e6ed64e2c51fb493a40b7d /test/unit/ajax.js
parentcfe468f29c4cbe1a457d0feb17dec90dcfd7c280 (diff)
downloadjquery-b091fdbafac33123cba329e6bb48b9281323ca38.tar.gz
jquery-b091fdbafac33123cba329e6bb48b9281323ca38.zip
Ajax: use anchor tag for parsing urls
Fixes gh-1875 Closes gh-1880
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 6f3bacebe..468d38459 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -301,7 +301,7 @@ module( "ajax", {
}
]);
- ajaxTest( "jQuery.ajax() - cross-domain detection", 7, function() {
+ ajaxTest( "jQuery.ajax() - cross-domain detection", 8, function() {
function request( url, title, crossDomainOrOptions ) {
return jQuery.extend( {
dataType: "jsonp",
@@ -351,6 +351,10 @@ module( "ajax", {
{
crossDomain: true
}
+ ),
+ request(
+ " http://otherdomain.com",
+ "Cross-domain url with leading space is detected as cross-domain"
)
];
});