git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A quick change to detect AIR urls
[jquery.git]
/
test
/
unit
/
ajax.js
diff --git
a/test/unit/ajax.js
b/test/unit/ajax.js
index
335c2ac
..
4ce15f8
100644
(file)
--- 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 );
});
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
}
//}
\ No newline at end of file