From 112f612aaf5e18661d9fce802077e8663f7da928 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Wed, 11 Nov 2015 18:51:34 +0300 Subject: Revert "Ajax: Only form-encode requests with a body" This reverts commit 70605c8e5655da996ebd395e3c43423daaa08d9c. --- test/unit/ajax.js | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'test/unit/ajax.js') 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( -- cgit v1.2.3