Skip to content

Commit 71bd828

Browse files
committed
Grouped up the test
1 parent 14e9da5 commit 71bd828

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

test/unit/ajax.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ test(".ajax() - hash", function() {
492492

493493
test("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
//}

0 commit comments

Comments
 (0)