git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bringing in the rdashAlpha/fcamelCase private var tweaks from the csshooks branch.
[jquery.git]
/
test
/
unit
/
ajax.js
diff --git
a/test/unit/ajax.js
b/test/unit/ajax.js
index
be4b3f0
..
8e3c4b6
100644
(file)
--- a/
test/unit/ajax.js
+++ b/
test/unit/ajax.js
@@
-1163,6
+1163,19
@@
test("data option: evaluate function values (#2806)", function() {
})
});
})
});
+test("data option: empty bodies for non-GET requests", function() {
+ stop();
+ jQuery.ajax({
+ url: "data/echoData.php",
+ data: undefined,
+ type: "post",
+ success: function(result) {
+ equals( result, "" );
+ start();
+ }
+ })
+});
+
test("jQuery.ajax - If-Modified-Since support", function() {
expect( 3 );
test("jQuery.ajax - If-Modified-Since support", function() {
expect( 3 );
@@
-1225,6
+1238,12
@@
test("jQuery.ajax - Etag support", function() {
});
});
});
});
+
+test("jQuery.ajax - active counter", function() {
+ ok( jQuery.ajax.active == 0, "ajax active counter should be zero: " + jQuery.ajax.active );
+});
+
+
}
//}
}
//}