File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ test(".ajax() - hash", function() {
492492
493493test ( "jQuery ajax - cross-domain detection" , function ( ) {
494494
495- expect ( 4 ) ;
495+ expect ( 5 ) ;
496496
497497 var loc = document . location ,
498498 otherPort = loc . port === 666 ? 667 : 666 ,
@@ -507,6 +507,14 @@ test("jQuery ajax - cross-domain detection", function() {
507507 }
508508 } ) ;
509509
510+ jQuery . ajax ( {
511+ url : 'app:/path' ,
512+ beforeSend : function ( _ , s ) {
513+ ok ( s . crossDomain , "Adobe AIR app:/ URL detected as cross-domain" ) ;
514+ return false ;
515+ }
516+ } ) ;
517+
510518 jQuery . ajax ( {
511519 dataType : "jsonp" ,
512520 url : loc . protocol + '//somewebsitethatdoesnotexist-656329477541.com:' + ( loc . port || 80 ) ,
@@ -2239,18 +2247,6 @@ test("jQuery.ajax - active counter", function() {
22392247 ok ( jQuery . active == 0 , "ajax active counter should be zero: " + jQuery . active ) ;
22402248} ) ;
22412249
2242- test ( "jQuery.ajax - compatible with AIR urls" ) , function ( ) {
2243- expect ( 1 ) ;
2244- stop ( ) ;
2245- $ . ajax ( {
2246- url : "app:/testing" ,
2247- beforeSend : function ( ) {
2248- ok ( this . crossDomain , "Detected crossDomain for AIR Url" ) ;
2249- return false ;
2250- }
2251- } ) ;
2252- } ) ;
2253-
22542250}
22552251
22562252//}
You can’t perform that action at this time.
0 commit comments