aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-02-24 13:10:33 -0600
committergnarf <gnarf@gnarf.net>2011-02-24 13:10:33 -0600
commit14e9da51f96a7a9b1a5c239c32f4abe20eb2b795 (patch)
tree11c3aa3f4e6c07481a494ca1fca090eca7598a03 /test/unit/ajax.js
parent58faec7cb7e820ef910b4850f5234da3989e6961 (diff)
downloadjquery-14e9da51f96a7a9b1a5c239c32f4abe20eb2b795.tar.gz
jquery-14e9da51f96a7a9b1a5c239c32f4abe20eb2b795.zip
A quick change to detect AIR urls
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 335c2ac4d..4ce15f8f3 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -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;
+ }
+ });
+});
+
}
//} \ No newline at end of file