aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2011-04-16 09:12:53 -0700
committerJohn Resig <jeresig@gmail.com>2011-04-16 09:12:53 -0700
commitce7b311b9227e86d7f03c002cbaf1796f8086059 (patch)
tree330bb56b5e726ea1c9b2df497b6b7c2844f645d5 /test/unit/ajax.js
parenta519129e99ba03770e9290961d43fad9f6873a83 (diff)
downloadjquery-ce7b311b9227e86d7f03c002cbaf1796f8086059.tar.gz
jquery-ce7b311b9227e86d7f03c002cbaf1796f8086059.zip
Backing out fix for #6481.
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index ac1dc73b1..a8a5fa0d7 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -946,7 +946,7 @@ test("serialize()", function() {
});
test("jQuery.param()", function() {
- expect(24);
+ expect(21);
equals( !jQuery.ajaxSettings.traditional, true, "traditional flag, falsy by default" );
@@ -976,11 +976,6 @@ test("jQuery.param()", function() {
equals( decodeURIComponent( jQuery.param({ a: [1,2,3], "b[]": [4,5,6], "c[d]": [7,8,9], e: { f: [10], g: [11,12], h: 13 } }) ), "a[]=1&a[]=2&a[]=3&b[]=4&b[]=5&b[]=6&c[d][]=7&c[d][]=8&c[d][]=9&e[f][]=10&e[g][]=11&e[g][]=12&e[h]=13", "Make sure params are not double-encoded." );
- // Make sure empty arrays and objects are handled #6481
- equals( jQuery.param({"foo": {"bar": []} }), "foo%5Bbar%5D=", "Empty array param" );
- equals( jQuery.param({"foo": {"bar": [], foo: 1} }), "foo%5Bbar%5D=&foo%5Bfoo%5D=1", "Empty array param" );
- equals( jQuery.param({"foo": {"bar": {}} }), "foo%5Bbar%5D=", "Empty object param" );
-
// #7945
equals( jQuery.param({"jquery": "1.4.2"}), "jquery=1.4.2", "Check that object with a jQuery property get serialized correctly" );
@@ -2259,4 +2254,4 @@ test("jQuery.ajax - active counter", function() {
}
-//} \ No newline at end of file
+//}