aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-11-11 18:51:34 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-11-11 18:51:34 +0300
commit112f612aaf5e18661d9fce802077e8663f7da928 (patch)
treec449a5166fdb91b2c066726dac96b3baab9f0153 /test/unit/ajax.js
parent9fd56078df0bba653ea87153d6378f469842e006 (diff)
downloadjquery-112f612aaf5e18661d9fce802077e8663f7da928.tar.gz
jquery-112f612aaf5e18661d9fce802077e8663f7da928.zip
Revert "Ajax: Only form-encode requests with a body"
This reverts commit 70605c8e5655da996ebd395e3c43423daaa08d9c.
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 12bf2ab31..4d7dc95e8 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -1148,48 +1148,6 @@ QUnit.module( "ajax", {
};
} );
- ajaxTest( "jQuery.ajax() - data - x-www-form-urlencoded (gh-2658)", 1, function( assert ) {
- return {
- url: "bogus.html",
- data: { devo: "A Beautiful World" },
- type: "post",
- beforeSend: function( _, s ) {
- assert.strictEqual( s.data, "devo=A+Beautiful+World", "data is '+'-encoded" );
- return false;
- },
- error: true
- };
- } );
-
- ajaxTest( "jQuery.ajax() - data - text/plain (gh-2658)", 1, function( assert ) {
- return {
- url: "bogus.html",
- data: { devo: "A Beautiful World" },
- type: "post",
- contentType: "text/plain",
- beforeSend: function( _, s ) {
- assert.strictEqual( s.data, "devo=A%20Beautiful%20World", "data is %20-encoded" );
- return false;
- },
- error: true
- };
- } );
-
- ajaxTest( "jQuery.ajax() - data - no processing ", 1, function( assert ) {
- return {
- url: "bogus.html",
- data: { devo: "A Beautiful World" },
- type: "post",
- contentType: "x-special-sauce",
- processData: false,
- beforeSend: function( _, s ) {
- assert.deepEqual( s.data, { devo: "A Beautiful World" }, "data is not processed" );
- return false;
- },
- error: true
- };
- } );
-
var ifModifiedNow = new Date();
jQuery.each(