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() {
492
492
493
493
test ( "jQuery ajax - cross-domain detection" , function ( ) {
494
494
495
- expect ( 4 ) ;
495
+ expect ( 5 ) ;
496
496
497
497
var loc = document . location ,
498
498
otherPort = loc . port === 666 ? 667 : 666 ,
@@ -507,6 +507,14 @@ test("jQuery ajax - cross-domain detection", function() {
507
507
}
508
508
} ) ;
509
509
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
+
510
518
jQuery . ajax ( {
511
519
dataType : "jsonp" ,
512
520
url : loc . protocol + '//somewebsitethatdoesnotexist-656329477541.com:' + ( loc . port || 80 ) ,
@@ -2239,18 +2247,6 @@ test("jQuery.ajax - active counter", function() {
2239
2247
ok ( jQuery . active == 0 , "ajax active counter should be zero: " + jQuery . active ) ;
2240
2248
} ) ;
2241
2249
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
-
2254
2250
}
2255
2251
2256
2252
//}
You can’t perform that action at this time.
0 commit comments