mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
A quick change to detect AIR urls
This commit is contained in:
parent
58faec7cb7
commit
14e9da51f9
@ -19,7 +19,7 @@ var r20 = /%20/g,
|
||||
rucHeadersFunc = function( _, $1, $2 ) {
|
||||
return $1 + $2.toUpperCase();
|
||||
},
|
||||
rurl = /^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,
|
||||
rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?|\/[^\/])/,
|
||||
|
||||
// Keep a copy of the old load method
|
||||
_load = jQuery.fn.load,
|
||||
|
@ -2239,6 +2239,18 @@ test("jQuery.ajax - active counter", function() {
|
||||
ok( jQuery.active == 0, "ajax active counter should be zero: " + jQuery.active );
|
||||
});
|
||||
|
||||
test("jQuery.ajax - compatible with AIR urls"), function() {
|
||||
expect( 1 );
|
||||
stop();
|
||||
$.ajax({
|
||||
url: "app:/testing",
|
||||
beforeSend: function() {
|
||||
ok( this.crossDomain, "Detected crossDomain for AIR Url" );
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//}
|
Loading…
Reference in New Issue
Block a user